https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67786
--- Comment #4 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Fri Oct 2 08:36:45 2015 New Revision: 228375 URL: https://gcc.gnu.org/viewcvs?rev=228375&root=gcc&view=rev Log: [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. Added: trunk/gcc/testsuite/gcc.dg/pr67786.c trunk/gcc/testsuite/gcc.dg/pr67787.c Modified: trunk/gcc/ChangeLog trunk/gcc/ifcvt.c trunk/gcc/testsuite/ChangeLog