diff options
author | Richard Biener <rguenther@suse.de> | 2016-02-01 15:38:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-02-01 15:38:08 +0000 |
commit | bc369dbd3f4a3290bc6e6e42892e47a90dc34f4f (patch) | |
tree | 38b01bfd3bdf6c9d9b8753e0ef46c0c637f4491c /gcc/tree-chrec.c | |
parent | 0b2e1bfa0a8b778c564786af0556302257cea450 (diff) | |
download | gcc-bc369dbd3f4a3290bc6e6e42892e47a90dc34f4f.zip gcc-bc369dbd3f4a3290bc6e6e42892e47a90dc34f4f.tar.gz gcc-bc369dbd3f4a3290bc6e6e42892e47a90dc34f4f.tar.bz2 |
re PR tree-optimization/69574 (gcc ICE at -O2 and -O3 on x86_64-linux-gnu in hide_evolution_in_other_loops_than_loop)
2016-02-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/69574
* tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
of asserting return chrec_dont_know.
* gcc.dg/torture/pr69574.c: New testcase.
From-SVN: r233039
Diffstat (limited to 'gcc/tree-chrec.c')
-rw-r--r-- | gcc/tree-chrec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index 264c105..7a2e100 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -728,12 +728,12 @@ hide_evolution_in_other_loops_than_loop (tree chrec, /* There is no evolution in this loop. */ return initial_condition (chrec); + else if (flow_loop_nested_p (loop, chloop)) + return hide_evolution_in_other_loops_than_loop (CHREC_LEFT (chrec), + loop_num); + else - { - gcc_assert (flow_loop_nested_p (loop, chloop)); - return hide_evolution_in_other_loops_than_loop (CHREC_LEFT (chrec), - loop_num); - } + return chrec_dont_know; default: return chrec; |