]> git.ipfire.org Git - thirdparty/gcc.git/commit
[31/77] Use scalar_int_mode for move2add
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:12:41 +0000 (11:12 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:12:41 +0000 (11:12 +0000)
commit18426c5ba331d8a1232febe0d66acb8c0e487cfa
tree4c7a16380509138a44cd7ecd340f4804b1ed2672
parent086e7f881837922aa5616e37d29a9b561cb0ca2a
[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.

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