diff options
author | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:12:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:12:41 +0000 |
commit | 1e047eedb4c116f861f9d781b0a36821084242ef (patch) | |
tree | 4c7a16380509138a44cd7ecd340f4804b1ed2672 /gcc/ada/gcc-interface/decl.c | |
parent | e4dc9904bad9c0ce64b984f5fe895ff66e6f8d9d (diff) | |
download | gcc-1e047eedb4c116f861f9d781b0a36821084242ef.zip gcc-1e047eedb4c116f861f9d781b0a36821084242ef.tar.gz gcc-1e047eedb4c116f861f9d781b0a36821084242ef.tar.bz2 |
[31/77] Use scalar_int_mode for move2add
The postreload move2add optimisations are specific to scalar
integers. This patch adds an explicit check to the main guarding
"if" and propagates the information through subroutines.
gcc/
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
* postreload.c (move2add_valid_value_p): Change the type of the
mode parameter to scalar_int_mode.
(move2add_use_add2_insn): Add a mode parameter and use it instead
of GET_MODE (reg).
(move2add_use_add3_insn): Likewise.
(reload_cse_move2add): Update accordingly.
From-SVN: r251483
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions