[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 2 Oct 2015 08:36:45 +0000 (08:36 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 2 Oct 2015 08:36:45 +0000 (08:36 +0000)
commit6b7e8671878891adcbace3de22331689b85b2ce9
treece4cc7ec9b7b6b5c5b2592d6b2a7c19541561908
parentc0233c783d09832f51bf67d32b919852c74621d6
[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block don't clobber a reg used in condition

        PR rtl-optimization/67786
        PR rtl-optimization/67787
        * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
        it modifies a reg used in the condition calculation.

        * gcc.dg/pr67786.c: New test.
        * gcc.dg/pr67787.c: Likewise.

From-SVN: r228375
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67786.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr67787.c [new file with mode: 0644]