https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61576
--- Comment #6 from Kirill Yukhin <kyukhin at gcc dot gnu.org> --- Author: kyukhin Date: Tue Jul 8 07:52:12 2014 New Revision: 212347 URL: https://gcc.gnu.org/viewcvs?rev=212347&root=gcc&view=rev Log: PR tree-optimization/61576 gcc/ * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic block containing reduction statement is predecessor of phi basi block. gcc/testsuite/ * gcc.dg/torture/pr61576.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr61576.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-if-conv.c