diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-17 14:02:32 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-17 14:02:32 +0000 |
commit | 6add4dcbcde75b42daaefbcedd2b8711105d2227 (patch) | |
tree | 36e4238959211c912f02a5c7f7e063672508ce52 /gcc/expr.c | |
parent | 9e35d3153ed1a9a27a393973d5c8cd4b9a1ef234 (diff) | |
download | gcc-6add4dcbcde75b42daaefbcedd2b8711105d2227.tar.gz |
Do not generate CLOBBERs for non-pseudo regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24364 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 534fac638a7..e943e53463e 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2593,9 +2593,18 @@ emit_move_insn_1 (x, y) } else { - /* Show the output dies here. */ + /* Show the output dies here. This is only necessary for pseudos. */ if (x != y) - emit_insn (gen_rtx_CLOBBER (VOIDmode, x)); + { + rtx reg = x; + + while (GET_CODE (reg) == SUBREG) + reg = SUBREG_REG (reg); + + if (GET_CODE (reg) == REG + && REGNO (reg) >= FIRST_PSEUDO_REGISTER) + emit_insn (gen_rtx_CLOBBER (VOIDmode, x)); + } emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code) (gen_realpart (submode, x), gen_realpart (submode, y))); @@ -2624,9 +2633,18 @@ emit_move_insn_1 (x, y) } #endif - /* Show the output dies here. */ + /* Show the output dies here. This is only necessary for pseudos. */ if (x != y) - emit_insn (gen_rtx_CLOBBER (VOIDmode, x)); + { + rtx reg = x; + + while (GET_CODE (reg) == SUBREG) + reg = SUBREG_REG (reg); + + if (GET_CODE (reg) == REG + && REGNO (reg) >= FIRST_PSEUDO_REGISTER) + emit_insn (gen_rtx_CLOBBER (VOIDmode, x)); + } for (i = 0; i < (GET_MODE_SIZE (mode) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD; |