diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-13 20:22:59 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-13 20:22:59 +0000 |
commit | f82f49f04721829b12a7b04a8615ca33ae06c8d8 (patch) | |
tree | 18c7c8cae0cf564597e266430d0812d275671143 /gcc/regmove.c | |
parent | 0fb24c9301b14d80a3358253cbe04aa908b20007 (diff) | |
download | gcc-f82f49f04721829b12a7b04a8615ca33ae06c8d8.tar.gz |
2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* regmove.c (fixup_match_2): Only access call_used_regs with hard
regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regmove.c')
-rw-r--r-- | gcc/regmove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c index a2baca1c3bb..454c97741e3 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -859,7 +859,7 @@ fixup_match_2 (rtx insn, rtx dst, rtx src, rtx offset) if (REG_N_CALLS_CROSSED (REGNO (src)) == 0) break; - if (call_used_regs [REGNO (dst)] + if ((HARD_REGISTER_P (dst) && call_used_regs [REGNO (dst)]) || find_reg_fusage (p, CLOBBER, dst)) break; } |