Use scalar_mode in expand_shift_1
authorRichard Sandiford <richard.sandiford@linaro.org>
Mon, 23 Oct 2017 09:32:31 +0000 (09:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 23 Oct 2017 09:32:31 +0000 (09:32 +0000)
commita85cf8e99049f4db8b5868b5df5ef201a9a7b2cb
tree0dc86c8dddd3eb858c600f0a760fb715da8573f7
parenteb0e98f885208502b82b75ed7e63a2dce252cb9b
Use scalar_mode in expand_shift_1

Since this function handles scalar and vector shifts:

  machine_mode scalar_mode = mode;
  if (VECTOR_MODE_P (mode))
    scalar_mode = GET_MODE_INNER (mode);

is equivalent to:

  scalar_mode = GET_MODE_INNER (mode);

2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* expmed.c (expand_shift_1): Use scalar_mode for scalar_mode.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253999
gcc/ChangeLog
gcc/expmed.c