aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-03-08 13:27:12 +0100
committerRichard Biener <rguenther@suse.de>2024-03-08 14:40:57 +0100
commit018ddc86b928514d7dfee024dcdeb204d5dcdd61 (patch)
tree84e03953ae9dee92598d740269a1bfd5573c625a /contrib
parent3cdaa6491fe805ffc1dc545722b97660f31572fa (diff)
downloadgcc-018ddc86b928514d7dfee024dcdeb204d5dcdd61.zip
gcc-018ddc86b928514d7dfee024dcdeb204d5dcdd61.tar.gz
gcc-018ddc86b928514d7dfee024dcdeb204d5dcdd61.tar.bz2
tree-optimization/114269 - 434.zeusmp regression after SCEV analysis fix
The following addresses a performance regression caused by the recent SCEV analysis fix with regard to folding multiplications and undefined behavior on overflow. We do not handle (T) { a, +, b } * c but can treat sign-conversions from unsigned by performing the multiplication in the unsigned type. That's what we already do for additions (but that misses one case that turns out important). This fixes the 434.zeusmp regression for me. PR tree-optimization/114269 PR tree-optimization/114074 * tree-chrec.cc (chrec_fold_plus_1): Handle sign-conversions in the third CASE_CONVERT case as well. (chrec_fold_multiply): Handle sign-conversions from unsigned by performing the operation in the unsigned type.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions