diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-10-14 10:43:58 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-10-14 13:56:37 -0400 |
commit | f0b7d4cc49ddb1c2c7474cc3f61e260aa93a96c0 (patch) | |
tree | 71c7d4f4e47be4d9c5dd632be114c68d99fc8091 /gcc/fortran/simplify.c | |
parent | 2c4666fb0686a8f5a55821f1527351dc71c018b4 (diff) | |
download | gcc-f0b7d4cc49ddb1c2c7474cc3f61e260aa93a96c0.zip gcc-f0b7d4cc49ddb1c2c7474cc3f61e260aa93a96c0.tar.gz gcc-f0b7d4cc49ddb1c2c7474cc3f61e260aa93a96c0.tar.bz2 |
Simplification for right shift.
When the first operand of a signed right shift is zero or negative one, the
RHS doesn't matter and the shift can be converted to a copy.
PR tree-optimization/102738
gcc/
* vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
gcc/testsuite
* gcc.dg/pr102738.c: New.
Diffstat (limited to 'gcc/fortran/simplify.c')
0 files changed, 0 insertions, 0 deletions