tree-optimization/104676 - free nb_iterations after loop distribution
authorRichard Biener <rguenther@suse.de>
Thu, 24 Feb 2022 13:34:52 +0000 (14:34 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 24 Feb 2022 14:57:55 +0000 (15:57 +0100)
commita4066d3a5097333f17c0d7be1630a98f3a5b1c1d
tree80b6af5e2320a248545141ad0fd08447ccc63b28
parent9251b457eb8df912f2e8203d0ee8ab300c041520
tree-optimization/104676 - free nb_iterations after loop distribution

Loop distribution can release SSA names used in nb_iterations, make
sure to release those.

2022-02-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/104676
* tree-loop-distribution.cc (loop_distribution::execute):
Do a full scev_reset.

* gcc.dg/torture/pr104676.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr104676.c [new file with mode: 0644]
gcc/tree-loop-distribution.cc