diff options
author | Richard Biener <rguenther@suse.de> | 2021-09-02 10:47:35 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-09-02 11:39:27 +0200 |
commit | 483e400870601f650c80f867ec781cd5f83507d6 (patch) | |
tree | e61ffe6f5d993c5d330dbbb5df667f96caa2e36a /gcc/tree-ssa-uninit.c | |
parent | 2af6dd77ea742d4ee911f466878624972929508a (diff) | |
download | gcc-483e400870601f650c80f867ec781cd5f83507d6.zip gcc-483e400870601f650c80f867ec781cd5f83507d6.tar.gz gcc-483e400870601f650c80f867ec781cd5f83507d6.tar.bz2 |
Refine fix for PR78185, improve LIM for code after inner loops
This refines the fix for PR78185 after understanding that the code
regarding to the comment 'In a loop that is always entered we may
proceed anyway. But record that we entered it and stop once we leave
it.' was supposed to protect us from leaving possibly infinite inner
loops. The simpler fix of moving the misplaced stopping code
can then be refined to continue processing when the exited inner
loop is finite, improving invariant motion for cases like in the
added testcase.
2021-09-02 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
fix for PR78185 and continue processing when leaving
finite inner loops.
* gcc.dg/tree-ssa/ssa-lim-16.c: New testcase.
Diffstat (limited to 'gcc/tree-ssa-uninit.c')
0 files changed, 0 insertions, 0 deletions