[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 08:36:45 +0000 (08:36 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 08:36:45 +0000 (08:36 +0000)
commita4816821637d88ae0312d97965ae82918e9f052d
treece4cc7ec9b7b6b5c5b2592d6b2a7c19541561908
parentcf40f9adf04e9bce908a97f131f1d32fb7ee49ae
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228375 138bc75d-0d04-0410-961f-82ee72b054a4
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]