Ian Lance Taylor - PATCH COMMITTED: More lower-subreg tweaks (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

I've committed a couple of more tweaks to lower-subreg.c:

  1. Another fix for size of pointer_mode > size of word_mode: don't treat CONST as a simple move operand.

  2. Use validate_change when changing the operand of a clobber, to work better with dataflow-branch.

Bootstrapped and tested on i686-pc-linux-gnu. Committed.

Ian

2007-02-06 Ian Lance Taylor iant@google.com

* lower-subreg.c (simple_move_operand): Reject CONST.
(resolve_clobber): Call validate_change rather than directly
assigning to XEXP (pat, 0).

Index: lower-subreg.c

--- lower-subreg.c (revision 121651) +++ lower-subreg.c (working copy) @@ -80,7 +80,8 @@ simple_move_operand (rtx x)

if (GET_CODE (x) == LABEL_REF || GET_CODE (x) == SYMBOL_REF

@@ -832,6 +833,7 @@ resolve_clobber (rtx pat, rtx insn) rtx reg; enum machine_mode orig_mode; unsigned int words, i;

@@ -841,7 +843,12 @@ resolve_clobber (rtx pat, rtx insn) words = GET_MODE_SIZE (orig_mode); words = (words + UNITS_PER_WORD - 1) / UNITS_PER_WORD;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]