aboutsummaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2005-02-11 18:12:33 +0000
committerDale Johannesen <dalej@gcc.gnu.org>2005-02-11 18:12:33 +0000
commit7e42db17f9b49b8744758f286c3977305c62659e (patch)
tree96c02b57150b96ee2f726f5981afec81d54cbad8 /gcc/cselib.c
parent712b39c5282886e1552a3e105ffa0da9a94f480a (diff)
downloadgcc-7e42db17f9b49b8744758f286c3977305c62659e.zip
gcc-7e42db17f9b49b8744758f286c3977305c62659e.tar.gz
gcc-7e42db17f9b49b8744758f286c3977305c62659e.tar.bz2
cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
2005-02-11 Dale Johannesen <dalej@apple.com> * cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call. * reload.c (find_equiv_reg): Ditto. From-SVN: r94885
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index c64e087..f453489 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -1380,7 +1380,10 @@ cselib_process_insn (rtx insn)
if (CALL_P (insn))
{
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (call_used_regs[i])
+ if (call_used_regs[i]
+ || (REG_VALUES (i) && REG_VALUES (i)->elt
+ && HARD_REGNO_CALL_PART_CLOBBERED (i,
+ GET_MODE (REG_VALUES (i)->elt->u.val_rtx))))
cselib_invalidate_regno (i, reg_raw_mode[i]);
if (! CONST_OR_PURE_CALL_P (insn))