diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-02-25 22:56:27 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-02-25 22:56:27 +0000 |
commit | 9e48c409cd51c9d8ca4a3e2d04553bd963135b07 (patch) | |
tree | 34e3c139ca6605b8ce6fb63dc5163f6a7e897f71 /gcc/gcse.c | |
parent | 4e21585b537b749b0c2be93279b40ea2e1dbcca9 (diff) | |
download | gcc-9e48c409cd51c9d8ca4a3e2d04553bd963135b07.zip gcc-9e48c409cd51c9d8ca4a3e2d04553bd963135b07.tar.gz gcc-9e48c409cd51c9d8ca4a3e2d04553bd963135b07.tar.bz2 |
* gcse.c (cprop_jump): Revert the 2003-02-23 change.
From-SVN: r63420
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -4058,33 +4058,19 @@ cprop_jump (bb, setcc, jump, from, src) && !modified_between_p (src, setcc, jump)) { rtx setcc_set = single_set (setcc); - rtx note = find_reg_equal_equiv_note (setcc); - /* Use REG_EQUAL note if available. */ - rtx setcc_set_src = (note == 0) ? SET_SRC (setcc_set) : XEXP (note, 0); - new_set = simplify_replace_rtx (SET_SRC (set), SET_DEST (setcc_set), - setcc_set_src); + SET_SRC (setcc_set)); } else new_set = set; - /* If NEW_SET is simplified down to either a label or a no-op, we - don't have to replace FROM with SRC, but we still have to either - turn JUMP to an unconditional branch or remove the no-op. This - can happen if JUMP is simplified using the REG_EQUAL note in - SETCC. */ - if (GET_CODE (new_set) == LABEL_REF || new_set == pc_rtx) - new = new_set; - else - { - new = simplify_replace_rtx (new_set, from, src); + new = simplify_replace_rtx (new_set, from, src); - /* If no simplification can be made, then try the next - register. */ - if (rtx_equal_p (new, new_set) || rtx_equal_p (new, SET_SRC (set))) - return 0; - } + /* If no simplification can be made, then try the next + register. */ + if (rtx_equal_p (new, new_set) || rtx_equal_p (new, SET_SRC (set))) + return 0; /* If this is now a no-op delete it, otherwise this must be a valid insn. */ if (new == pc_rtx) |