aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-08-30 11:15:38 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-08-30 11:15:38 +0000
commite3731c52cf1b60d90f27f81ff0d1e2ad164fed07 (patch)
treedd8686b6bb9c379481012af719e72aaeae06a911 /gcc/expr.c
parent0b73246f1a11354037b6bb069ab1056f121e34fd (diff)
downloadgcc-e3731c52cf1b60d90f27f81ff0d1e2ad164fed07.zip
gcc-e3731c52cf1b60d90f27f81ff0d1e2ad164fed07.tar.gz
gcc-e3731c52cf1b60d90f27f81ff0d1e2ad164fed07.tar.bz2
[42/77] Use scalar_int_mode in simplify_shift_const_1
This patch makes simplify_shift_const_1 use scalar_int_modes for all code that is specific to scalars rather than vectors. This includes situations in which the new shift mode is different from the original one, since the function never changes the mode of vector shifts. That in turn makes it more natural to test for equal modes in simplify_shift_const_1 rather than try_widen_shift_mode (which only applies to scalars). 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * combine.c (try_widen_shift_mode): Move check for equal modes to... (simplify_shift_const_1): ...here. Use scalar_int_mode for shift_unit_mode and for modes involved in scalar shifts. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r251494
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions