re PR tree-optimization/78574 (ice on valid C code at -O2 and -O3 in both 32- and...
authorBin Cheng <bin.cheng@arm.com>
Wed, 30 Nov 2016 14:41:09 +0000 (14:41 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 30 Nov 2016 14:41:09 +0000 (14:41 +0000)
commitaec0ee116cb445f5d7bbbaff3d39f60a8f7cb118
tree5ccf9c104099340d6ccd504008b97d48de9e3595
parent44cd68d2b7adf87223f6e580f575c69bb6c19fa0
re PR tree-optimization/78574 (ice on valid C code at -O2 and -O3 in both 32- and 64-bit modes on x86_64-linux-gnu (internal compiler error: Segmentation fault (program cc1)))

PR tree-optimization/78574
* tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
header PHI that doesn't define biv.
gcc/testsuite
PR tree-optimization/78574
* gcc.c-torture/compile/pr78574.c: New test.

From-SVN: r243026
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr78574.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c