Use scalar_mode in expand_shift_1
commit6ce33017aab7d05162fd2bd22918325934cc35a3
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Oct 2017 09:32:31 +0000 (23 09:32 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Oct 2017 09:32:31 +0000 (23 09:32 +0000)
tree0dc86c8dddd3eb858c600f0a760fb715da8573f7
parentad1a05cccdfdb9140a325960bacc0b88b848ad06
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253999 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expmed.c