do not free the graph after emitting it (this should only change the peak memory...
[libfirm] / ir / be / ia32 / bearch_ia32.c
index 2d79b09..aa0d861 100644 (file)
@@ -2244,12 +2244,8 @@ static bool mux_is_set(ir_node *sel, ir_node *mux_true, ir_node *mux_false)
                        && mode != mode_b)
                return false;
 
-       if (is_Const(mux_true) && is_Const_one(mux_true)
-                       && is_Const(mux_false) && is_Const_null(mux_false)) {
-               return true;
-       }
-       if (is_Const(mux_true) && is_Const_null(mux_true)
-                       && is_Const(mux_false) && is_Const_one(mux_false)) {
+       if (is_Const(mux_true) && is_Const(mux_false)) {
+               /* we can create a set plus up two 3 instructions for any combination of constants */
                return true;
        }