tree-optimization/97539 - reset out-of-loop debug uses before peeling
authorRichard Biener <rguenther@suse.de>
Mon, 26 Oct 2020 09:08:38 +0000 (10:08 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 26 Oct 2020 10:33:50 +0000 (11:33 +0100)
commit27c14056f4805c9d8cfc655ef2c846be128b02c9
treed59e0999fb39d9c6635b69f2fbed3f03c42cf731
parent40e67ab8e59cf1c558f2818625c7e06dbf7a8e50
tree-optimization/97539 - reset out-of-loop debug uses before peeling

This makes sure to reset out-of-loop debug uses before vectorizer
loop peeling as we cannot make sure to retain the use-def dominance
relationship when there are no LC SSA nodes.

2020-10-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97539
* tree-vect-loop-manip.c (vect_do_peeling): Reset out-of-loop
debug uses before peeling.

* gcc.dg/pr97539.c: New testcase.
gcc/testsuite/gcc.dg/pr97539.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.c