diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:18:29 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:18:29 +0000 |
commit | 2123a9a50fb35109af6c2ba3bcfd71a1d5432954 (patch) | |
tree | 97a0311ec16d63c69c73d255611afe6da1970e0e /gcc/rtl.h | |
parent | d93d3864ca8a8b50de81e084136574021463d228 (diff) | |
download | gcc-2123a9a50fb35109af6c2ba3bcfd71a1d5432954.zip gcc-2123a9a50fb35109af6c2ba3bcfd71a1d5432954.tar.gz gcc-2123a9a50fb35109af6c2ba3bcfd71a1d5432954.tar.bz2 |
[58/77] Use scalar_int_mode in a try_combine optimisation
This patch uses scalar_int_modes for:
/* If I2 is setting a pseudo to a constant and I3 is setting some
sub-part of it to another constant, merge them by making a new
constant. */
This was already implicit, but the danger with checking only
CONST_SCALAR_INT_P is that it can include CC values too.
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_combine): Use is_a <scalar_int_mode> when
trying to combine a full-register integer set with a subreg
integer set.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251510
Diffstat (limited to 'gcc/rtl.h')
0 files changed, 0 insertions, 0 deletions