summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 03:28:31 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-30 03:28:31 +0000
commit533b9c83063396e96dcca4d31926d41716fce3e1 (patch)
tree2bf27bb95750d2d8adc15ae12eb9abfcba5374d0 /gcc/combine.c
parentc0a843e0756ff7d1eec6be383158674a47c1949e (diff)
downloadgcc-533b9c83063396e96dcca4d31926d41716fce3e1.tar.gz
* combine.c (distribute_notes): Don't look at global_regs for
pseudos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83889 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 7ce6b32c59a..f82858023dc 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -11839,8 +11839,9 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2)
TEM is doing. If so, delete TEM. Otherwise, make this
into a REG_UNUSED note instead. Don't delete sets to
global register vars. */
- if (reg_set_p (XEXP (note, 0), PATTERN (tem))
- && !global_regs [REGNO(XEXP (note, 0))])
+ if ((REGNO (XEXP (note, 0)) >= FIRST_PSEUDO_REGISTER
+ || !global_regs[REGNO (XEXP (note, 0))])
+ && reg_set_p (XEXP (note, 0), PATTERN (tem)))
{
rtx set = single_set (tem);
rtx inner_dest = 0;