diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-16 18:24:54 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-16 18:24:54 +0000 |
commit | 73a18f444e2dc1bb57d0ab2e6ebc192da5e5f498 (patch) | |
tree | 0b6dfb23c7b9928b9e9fac67fc5ef9b3e1d8ae3f /gcc/recog.c | |
parent | 8e6e2d692867405e598666e5b1dc73b500c82ea1 (diff) | |
download | gcc-73a18f444e2dc1bb57d0ab2e6ebc192da5e5f498.tar.gz |
2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59466
* emit-rtl.c (change_address_1): Don't validate address for LRA.
* recog.c (general_operand): Accept any memory for LRA.
* lra.c (lra_set_insn_recog_data): Add an assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index dbd9a8a5065..37e7692ea59 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1021,8 +1021,12 @@ general_operand (rtx op, enum machine_mode mode) if (! volatile_ok && MEM_VOLATILE_P (op)) return 0; - /* Use the mem's mode, since it will be reloaded thus. */ - if (memory_address_addr_space_p (GET_MODE (op), y, MEM_ADDR_SPACE (op))) + /* Use the mem's mode, since it will be reloaded thus. LRA can + generate move insn with invalid addresses which is made valid + and efficiently calculated by LRA through further numerous + transformations. */ + if (lra_in_progress + || memory_address_addr_space_p (GET_MODE (op), y, MEM_ADDR_SPACE (op))) return 1; } |