diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-17 16:46:11 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-17 16:46:11 +0000 |
commit | 2e6d14e821c5d443c3b1b9bf9986465316e60f51 (patch) | |
tree | abc7579f7c4d9b9f1797f4d5240635fb9e483b13 /gcc/regrename.c | |
parent | 749facf7d8b9bfeb70030e7d86ff8b40b30c4edf (diff) | |
download | gcc-2e6d14e821c5d443c3b1b9bf9986465316e60f51.tar.gz |
Implement MODE_BASE_REG_CLASS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48104 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r-- | gcc/regrename.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c index 3236a438287..fca249e99e8 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -611,7 +611,7 @@ scan_rtx_address (insn, loc, class, action, mode) if (locI) scan_rtx_address (insn, locI, INDEX_REG_CLASS, action, mode); if (locB) - scan_rtx_address (insn, locB, BASE_REG_CLASS, action, mode); + scan_rtx_address (insn, locB, MODE_BASE_REG_CLASS (mode), action, mode); return; } @@ -629,7 +629,8 @@ scan_rtx_address (insn, loc, class, action, mode) break; case MEM: - scan_rtx_address (insn, &XEXP (x, 0), BASE_REG_CLASS, action, + scan_rtx_address (insn, &XEXP (x, 0), + MODE_BASE_REG_CLASS (GET_MODE (x)), action, GET_MODE (x)); return; @@ -683,7 +684,8 @@ scan_rtx (insn, loc, class, action, type, earlyclobber) return; case MEM: - scan_rtx_address (insn, &XEXP (x, 0), BASE_REG_CLASS, action, + scan_rtx_address (insn, &XEXP (x, 0), + MODE_BASE_REG_CLASS (GET_MODE (x)), action, GET_MODE (x)); return; @@ -1376,8 +1378,9 @@ replace_oldest_value_addr (loc, class, mode, insn, vd) changed |= replace_oldest_value_addr (locI, INDEX_REG_CLASS, mode, insn, vd); if (locB) - changed |= replace_oldest_value_addr (locB, BASE_REG_CLASS, mode, - insn, vd); + changed |= replace_oldest_value_addr (locB, + MODE_BASE_REG_CLASS (mode), + mode, insn, vd); return changed; } @@ -1422,7 +1425,8 @@ replace_oldest_value_mem (x, insn, vd) rtx insn; struct value_data *vd; { - return replace_oldest_value_addr (&XEXP (x, 0), BASE_REG_CLASS, + return replace_oldest_value_addr (&XEXP (x, 0), + MODE_BASE_REG_CLASS (GET_MODE (x)), GET_MODE (x), insn, vd); } |