Commit b216e516 by Jeffrey A Law Committed by Jeff Law

reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not "widen" a…

reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not "widen" a destination that is already wider than a word.

        * reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not
        "widen" a destination that is already wider than a word.  Also do
        not widen if LOAD_EXTEND_OP is NIL for the given mode.

From-SVN: r40510
parent bb2cf916
Thu Mar 15 12:57:14 2001 Jeffrey A Law (law@cygnus.com)
* reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not
"widen" a destination that is already wider than a word. Also do
not widen if LOAD_EXTEND_OP is NIL for the given mode.
2001-03-15 Bernd Schmidt <bernds@redhat.com> 2001-03-15 Bernd Schmidt <bernds@redhat.com>
* config/ia64/ia64.c (ia64_sched_reorder): Remove debugging aids. * config/ia64/ia64.c (ia64_sched_reorder): Remove debugging aids.
......
...@@ -8279,9 +8279,13 @@ reload_cse_simplify_set (set, insn) ...@@ -8279,9 +8279,13 @@ reload_cse_simplify_set (set, insn)
&& GET_CODE (SET_SRC (set)) != REG)) && GET_CODE (SET_SRC (set)) != REG))
{ {
#ifdef LOAD_EXTEND_OP #ifdef LOAD_EXTEND_OP
rtx wide_dest = gen_rtx_REG (word_mode, REGNO (SET_DEST (set))); if (GET_MODE_BITSIZE (GET_MODE (SET_DEST (set))) < BITS_PER_WORD
ORIGINAL_REGNO (wide_dest) = ORIGINAL_REGNO (SET_DEST (set)); && extend_op != NIL)
validate_change (insn, &SET_DEST (set), wide_dest, 1); {
rtx wide_dest = gen_rtx_REG (word_mode, REGNO (SET_DEST (set)));
ORIGINAL_REGNO (wide_dest) = ORIGINAL_REGNO (SET_DEST (set));
validate_change (insn, &SET_DEST (set), wide_dest, 1);
}
#endif #endif
validate_change (insn, &SET_SRC (set), copy_rtx (this_rtx), 1); validate_change (insn, &SET_SRC (set), copy_rtx (this_rtx), 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment