[41/77] Split scalar integer handling out of force_to_mode
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 30 Aug 2017 11:15:28 +0000 (11:15 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 11:15:28 +0000 (11:15 +0000)
commit0b73246f1a11354037b6bb069ab1056f121e34fd
treeabbdf6159fb23149e5bcb1c2ed38028bb4c98fa6
parent5602f58c633e51b03b5f18bbd65924b4b842d075
[41/77] Split scalar integer handling out of force_to_mode

force_to_mode exits partway through for modes that aren't scalar
integers.  This patch splits the remainder of the function out
into a subroutine, force_int_to_mode, so that the modes from that
point on can have type scalar_int_mode.

The patch also makes sure that xmode is kept up-to-date with x
and uses xmode instead of GET_MODE (x) throughout.

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

gcc/
* combine.c (force_int_to_mode): New function, split out from...
(force_to_mode): ...here.  Keep xmode up-to-date and use it
instead of GET_MODE (x).

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