aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-08-04 11:24:49 +0200
committerRichard Biener <rguenther@suse.de>2023-08-04 12:16:00 +0200
commit04aa0edcace22a7815cfc57575f1f7b1f166ac10 (patch)
treeac6c2802b041b72eb25d191e7b488a4d72f37f5a /gcc/cp/method.cc
parent2d2f090e67b26457596e7d5aabe629e3da58db94 (diff)
downloadgcc-04aa0edcace22a7815cfc57575f1f7b1f166ac10.zip
gcc-04aa0edcace22a7815cfc57575f1f7b1f166ac10.tar.gz
gcc-04aa0edcace22a7815cfc57575f1f7b1f166ac10.tar.bz2
tree-optimization/110838 - less aggressively fold out-of-bound shifts
The following adjusts the shift simplification patterns to avoid touching out-of-bound shift value arithmetic right shifts of possibly negative values. While simplifying those to zero isn't wrong it's violating the principle of least surprise. PR tree-optimization/110838 * match.pd (([rl]shift @0 out-of-bounds) -> zero): Restrict the arithmetic right-shift case to non-negative operands.
Diffstat (limited to 'gcc/cp/method.cc')
0 files changed, 0 insertions, 0 deletions