diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2013-06-08 18:37:40 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2013-06-08 18:37:40 +0000 |
commit | ed52a84e3ffde82c52557d0f027488d9fe69563f (patch) | |
tree | ab8306145143473f85493065bdb87f06d1bef071 /gcc/lra-constraints.c | |
parent | 7b91690215d275028eacf31f75a22aaa9bc4f3b2 (diff) | |
download | gcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.zip gcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.tar.gz gcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.tar.bz2 |
re PR rtl-optimization/57559 (S/390: ICE with lra)
2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/57559
* lra-constraints.c (process_alt_operands): Don't discourage
memory with known offset for offsetable memory constraint.
* lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/57559
* gcc.target/s390/pr57559.c : New test.
From-SVN: r199859
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index a9f91c4..ed84d95 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -1997,15 +1997,8 @@ process_alt_operands (int only_alternative) (op, this_alternative) == NO_REGS)))) reject += LRA_MAX_REJECT; - if (MEM_P (op) && offmemok) - { - /* If we know offset and this non-offsetable memory, - something wrong with this memory and it is better - to try other memory possibilities. */ - if (MEM_OFFSET_KNOWN_P (op)) - reject += LRA_MAX_REJECT; - } - else if (! (const_to_mem && constmemok)) + if (! (MEM_P (op) && offmemok) + && ! (const_to_mem && constmemok)) { /* We prefer to reload pseudos over reloading other things, since such reloads may be able to be |