do not invert pnc on cmp in finish, as cmp gets normalized on creation
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 30 Aug 2006 08:23:42 +0000 (08:23 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 30 Aug 2006 08:23:42 +0000 (08:23 +0000)
ir/be/ia32/ia32_finish.c

index f5f40e1..5e649cb 100644 (file)
@@ -330,6 +330,7 @@ insert_copy:
                        we have to change it, as CMP doesn't support immediate
                        as left operands.
                */
+#if 0
                if ((is_ia32_CondJmp(irn) || is_ia32_CmpSet(irn) || is_ia32_xCmpSet(irn)) &&
                        (is_ia32_ImmConst(irn) || is_ia32_ImmSymConst(irn))                   &&
                        op_tp == ia32_AddrModeS)
@@ -338,6 +339,7 @@ insert_copy:
                        set_ia32_pncode(irn, get_inversed_pnc(get_ia32_pncode(irn)));
                }
        }
+#endif
 end: ;
 }