diff options
author | Richard Henderson <rth@redhat.com> | 2005-01-24 04:31:22 -0800 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2005-01-24 12:31:22 +0000 |
commit | 226c62c799e992c841f0cc0ea11b336dfa1dad06 (patch) | |
tree | 0a54555f464f8208dc7b02d40813d60da4509afb /gcc/regrename.c | |
parent | 2429f3d4c0e35378d86094f44e1b94e2f505d5c9 (diff) | |
download | gcc-226c62c799e992c841f0cc0ea11b336dfa1dad06.zip gcc-226c62c799e992c841f0cc0ea11b336dfa1dad06.tar.gz gcc-226c62c799e992c841f0cc0ea11b336dfa1dad06.tar.bz2 |
regrename.c (note_sets): Handle subregs.
* regrename.c (note_sets): Handle subregs.
Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>
From-SVN: r94157
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r-- | gcc/regrename.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c index f2ab1f1..744f181 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -94,6 +94,9 @@ note_sets (rtx x, rtx set ATTRIBUTE_UNUSED, void *data) HARD_REG_SET *pset = (HARD_REG_SET *) data; unsigned int regno; int nregs; + + if (GET_CODE (x) == SUBREG) + x = SUBREG_REG (x); if (!REG_P (x)) return; regno = REGNO (x); |