summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beverify.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-04-02 00:00:57 +0200
committerMatthias Braun <matze@braunis.de>2014-04-02 00:09:05 +0200
commitd6510178512f0845efcdc40231144a4fdf1204c2 (patch)
tree00492340bb11d6086e3ff5d0d455a3fe03a6e83c /ir/be/beverify.c
parent73886204f177b4419457c533c5261efee5ac77f0 (diff)
remove generic be_Spill/be_Reload node
Diffstat (limited to 'ir/be/beverify.c')
-rw-r--r--ir/be/beverify.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ir/be/beverify.c b/ir/be/beverify.c
index 70a8969..1f82070 100644
--- a/ir/be/beverify.c
+++ b/ir/be/beverify.c
@@ -410,7 +410,7 @@ static void collect_memphi(be_verify_spillslots_env_t *env, ir_node *node, ir_no
static void collect(be_verify_spillslots_env_t *env, ir_node *node, ir_node *reload, ir_entity* ent)
{
- if (be_is_Spill(node)) {
+ if (arch_irn_is(node, spill)) {
collect_spill(env, node, reload, ent);
} else if (is_Proj(node)) {
collect_memperm(env, node, reload, ent);
@@ -427,7 +427,7 @@ static void collect_spills_walker(ir_node *node, void *data)
{
be_verify_spillslots_env_t *env = (be_verify_spillslots_env_t*)data;
- if (be_is_Reload(node)) {
+ if (arch_irn_is(node, reload)) {
ir_node *spill = get_memory_edge(node);
if (spill == NULL) {
ir_fprintf(stderr, "Verify warning: No spill attached to reload %+F in block %+F(%s)\n",
@@ -478,9 +478,10 @@ static void check_lonely_spills(ir_node *node, void *data)
{
be_verify_spillslots_env_t *env = (be_verify_spillslots_env_t*)data;
- if (be_is_Spill(node) || (is_Proj(node) && be_is_MemPerm(get_Proj_pred(node)))) {
+ if (arch_irn_is(node, spill)
+ || (is_Proj(node) && be_is_MemPerm(get_Proj_pred(node)))) {
spill_t *spill = find_spill(env, node);
- if (be_is_Spill(node)) {
+ if (arch_irn_is(node, spill)) {
ir_entity *ent = arch_get_frame_entity(node);
be_check_entity(env, node, ent);
}