tree-optimization/97627 - Avoid computing niters for fake edges
authorRichard Biener <rguenther@suse.de>
Fri, 29 Jan 2021 10:17:42 +0000 (11:17 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 29 Jan 2021 11:09:10 +0000 (12:09 +0100)
commitf4e426f7bd7df279cb7aaecd91d273d9b7db338d
tree0d38d84b46427765d9f866fdf32a5675a53e2de5
parenta8c455bafdefdab0a7b8cdbcdb116c0086bae05e
tree-optimization/97627 - Avoid computing niters for fake edges

This avoids computing niters information for fake edges.

2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/97627
* tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
Do not analyze fake edges.

* g++.dg/pr97627.C: New testcase.
gcc/testsuite/g++.dg/pr97627.C [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c