aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-01-11 13:35:51 +0100
committerRichard Biener <rguenther@suse.de>2024-01-11 14:45:11 +0100
commit05e8ef2a05b477589cae25af3311bad0f68a90fe (patch)
treedcda854c265f423f56c5dac19acdf015c660ba42 /gcc/expr.cc
parentb793c21892be7c11e628b1949fe9ec0c041e0fdc (diff)
downloadgcc-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