- re-enabled global-non-null test, but place Confirms only before Cmp nodes
[libfirm] / ir / ir / iropt.c
index b7c6726..cd529ef 100644 (file)
@@ -49,7 +49,6 @@
 #include "opt_polymorphy.h"
 #include "irtools.h"
 #include "array_t.h"
-#include "xmalloc.h"
 
 /* Make types visible to allow most efficient access */
 #include "entity_t.h"
@@ -1254,7 +1253,7 @@ restart:
                                        n = b; /* Convb(Conv*(xxxb(...))) == xxxb(...) */
                                        DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
                                } else if (get_mode_arithmetic(n_mode) == get_mode_arithmetic(a_mode)) {
-                                       if (smaller_mode(b_mode, a_mode)) {
+                                       if (values_in_mode(b_mode, a_mode)) {
                                                n = b;        /* ConvS(ConvL(xxxS(...))) == xxxS(...) */
                                                DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
                                        }