Another variant without index, but shifts with different modes.
[libfirm] / ir / ana / irconsconfirm.c
index 61f4f4e..03c2149 100644 (file)
@@ -38,6 +38,7 @@
 #include "irprintf.h"
 #include "irgopt.h"
 #include "irtools.h"
+#include "array_t.h"
 
 /**
  * Walker environment.
@@ -124,7 +125,7 @@ static void handle_case(ir_node *block, ir_node *irn, long nr, env_t *env) {
  * @param env       statistical environment
  */
 static void handle_modeb(ir_node *block, ir_node *selector, pn_Cond pnc, env_t *env) {
-       ir_node *cond, *old, *cond_block, *other_blk = NULL, *con = NULL;
+       ir_node *cond, *old, *cond_block = NULL, *other_blk = NULL, *con = NULL;
        ir_node *c_b = NULL, *c_o = NULL;
        const ir_edge_t *edge, *next;
 
@@ -454,12 +455,13 @@ void construct_confirms(ir_graph *irg) {
                edges_deactivate(irg);
 }  /* construct_confirms */
 
+#if 0
 /**
  * Post-walker: Remove Confirm nodes
  */
 static void rem_Confirm(ir_node *n, void *env) {
        (void) env;
-       if (get_irn_op(n) == op_Confirm) {
+       if (is_Confirm(n)) {
                ir_node *value = get_Confirm_value(n);
                if (value != n)
                        exchange(n, value);
@@ -472,6 +474,7 @@ static void rem_Confirm(ir_node *n, void *env) {
                }
        }
 }  /* rem_Confirm */
+#endif
 
 /*
  * Remove all Confirm nodes from a graph.