aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-04-03 14:53:30 +0200
committerRichard Biener <rguenther@suse.de>2024-04-04 09:00:06 +0200
commite152177b362143465e2b9d721ea632cae3f13445 (patch)
tree961dfefa1e24808b7ce3a1b81a4cdcc28dfb91f9 /gcc/function.cc
parentfe385c219994f6d5c1ffe00bcaf5a62c3d18caaf (diff)
downloadgcc-e152177b362143465e2b9d721ea632cae3f13445.zip
gcc-e152177b362143465e2b9d721ea632cae3f13445.tar.gz
gcc-e152177b362143465e2b9d721ea632cae3f13445.tar.bz2
tree-optimization/114551 - loop splitting and undefined overflow
When loop splitting hoists a guard computation it needs to make sure that can be safely evaluated at this place when it was previously only conditionally evaluated. The following fixes this for the case of undefined overflow. PR tree-optimization/114551 * tree-ssa-loop-split.cc (split_loop): If the guard is only conditionally evaluated rewrite computations with possibly undefined overflow to unsigned arithmetic. * gcc.dg/torture/pr114551.c: New testcase.
Diffstat (limited to 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions