diff options
author | Richard Biener <rguenther@suse.de> | 2024-01-11 13:35:51 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-01-11 14:45:11 +0100 |
commit | 05e8ef2a05b477589cae25af3311bad0f68a90fe (patch) | |
tree | dcda854c265f423f56c5dac19acdf015c660ba42 /gcc/expr.cc | |
parent | b793c21892be7c11e628b1949fe9ec0c041e0fdc (diff) | |
download | gcc-05e8ef2a05b477589cae25af3311bad0f68a90fe.zip gcc-05e8ef2a05b477589cae25af3311bad0f68a90fe.tar.gz gcc-05e8ef2a05b477589cae25af3311bad0f68a90fe.tar.bz2 |
tree-optimization/112636 - estimate niters before header copying
The following avoids a mismatch between an early query for maximum
number of iterations of a loop and a late one when through ranger
we'd get iterations estimated. Instead make sure we compute niters
before querying the iteration bound.
PR tree-optimization/112636
* tree-ssa-loop-ch.cc (ch_base::copy_headers): Call
estimate_numbers_of_iterations before querying
get_max_loop_iterations_int.
(pass_ch::execute): Initialize SCEV and loops appropriately.
* gcc.dg/pr112636.c: New testcase.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions