diff options
author | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-24 19:15:43 +0000 |
---|---|---|
committer | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-24 19:15:43 +0000 |
commit | 0b7149f016a94ab90da0ebbacd36ca8e877e18a4 (patch) | |
tree | f405b768fe015e84c1d843db4ab9e8e2ec4d672b /gcc/combine.c | |
parent | d53f2721e5627ade8eeb3545732dbdcb78c6259d (diff) | |
download | gcc-0b7149f016a94ab90da0ebbacd36ca8e877e18a4.tar.gz |
2004-06-24 Eric Christopher <echristo@redhat.com>
* combine.c (distribute_notes): Don't delete sets to
global register variables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83606 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index c0fef9d7f38..008e351ca1a 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11821,8 +11821,10 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2) /* If the register is being set at TEM, see if that is all TEM is doing. If so, delete TEM. Otherwise, make this - into a REG_UNUSED note instead. */ - if (reg_set_p (XEXP (note, 0), PATTERN (tem))) + 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))]) { rtx set = single_set (tem); rtx inner_dest = 0; |