add missing condition
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jun 2008 15:05:44 +0000 (15:05 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jun 2008 15:05:44 +0000 (15:05 +0000)
[r19942]

ir/ir/iropt.c

index c991c20..8dc2c5a 100644 (file)
@@ -1276,10 +1276,12 @@ restart:
                                }
                        }
                        if (is_Conv(b)) {
-                               if (get_Conv_strict(n))
-                                       set_Conv_strict(b, 1);
-                               n = b; /* ConvA(ConvB(ConvA(...))) == ConvA(...) */
-                               DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
+                               if (smaller_mode(b_mode, a_mode)) {
+                                       if (get_Conv_strict(n))
+                                               set_Conv_strict(b, 1);
+                                       n = b; /* ConvA(ConvB(ConvA(...))) == ConvA(...) */
+                                       DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_CONV);
+                               }
                        }
                }
        }