diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-26 23:19:27 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-26 23:19:27 +0000 |
commit | f0164c9d06af0e7ea483d2e85c5650bc5b588716 (patch) | |
tree | af8c0570f663a949b6dcd2ad9275efb25a2a2a74 /gcc | |
parent | 37710a73151d9b4f29d186dc67b8e0972a80375a (diff) | |
download | gcc-f0164c9d06af0e7ea483d2e85c5650bc5b588716.tar.gz |
* postreload.c (reload_cse_move2add): Generate just a PLUS
instead of an entire SET.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78527 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/postreload.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83a528b0fc1..cc4ba4a0f98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-26 Kazu Hirata <kazu@cs.umass.edu> + + * postreload.c (reload_cse_move2add): Generate just a PLUS + instead of an entire SET. + 2004-02-26 Jan Hubicka <jh@suse.cz> * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m diff --git a/gcc/postreload.c b/gcc/postreload.c index e0f72d99ebd..4a09421ffbf 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -1255,12 +1255,8 @@ reload_cse_move2add (rtx first) else if (rtx_cost (new_src, PLUS) < rtx_cost (src, SET) && have_add2_insn (reg, new_src)) { - rtx newpat = gen_rtx_SET (VOIDmode, - reg, - gen_rtx_PLUS (GET_MODE (reg), - reg, - new_src)); - validate_change (insn, &PATTERN (insn), newpat, 0); + rtx tem = gen_rtx_PLUS (GET_MODE (reg), reg, new_src); + validate_change (insn, &SET_SRC (pat), tem, 0); } else { |