]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cfgloopmanip.h
re PR tree-optimization/71595 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu...
authorRichard Biener <rguenther@suse.de>
Thu, 24 Nov 2016 12:25:22 +0000 (12:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 24 Nov 2016 12:25:22 +0000 (12:25 +0000)
commiteb2afa1a80613d37aa12fdd5a0624b45fdef9377
treee719b1da7d230192f4964664cd374d04f8b94006
parent2d8fec87b11ecfad75f8cae7910e60e1a61ec61b
re PR tree-optimization/71595 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:704)

2016-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71595
* cfgloopmanip.h (remove_path): Add irred_invalidated and
loop_closed_ssa_invalidated parameters, defaulted to NULL.
* cfgloopmanip.c (remove_path): Likewise, pass them along to
called functions.  Only fix irred flags if the caller didn't
request state.
* tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
(unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
to remove_path.

* gcc.dg/torture/pr71595.c: New testcase.

From-SVN: r242835
gcc/ChangeLog
gcc/cfgloopmanip.c
gcc/cfgloopmanip.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr71595.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivcanon.c