Commit b088998d by John David Anglin Committed by Jeff Law

From Jeff Law.

        * pa.c (basereg_operand): Simplify.

From-SVN: r38382
parent 79c2ffde
2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
From Jeff Law.
* pa.c (basereg_operand): Simplify.
2000-12-19 Bernd Schmidt <bernds@redhat.co.uk> 2000-12-19 Bernd Schmidt <bernds@redhat.co.uk>
* haifa-sched.c (rm_line_notes): Arguments are now head and tail, * haifa-sched.c (rm_line_notes): Arguments are now head and tail,
......
...@@ -6152,29 +6152,15 @@ basereg_operand (op, mode) ...@@ -6152,29 +6152,15 @@ basereg_operand (op, mode)
if (TARGET_NO_SPACE_REGS) if (TARGET_NO_SPACE_REGS)
return (GET_CODE (op) == REG); return (GET_CODE (op) == REG);
/* Once reload has started any register with REG_POINTER set
is considered valid. Reload should only create indexed addresses
using the stack/frame pointer. All others are checked for
validity when they are created by the combine pass. */
if (reload_in_progress || reload_completed)
return (GET_CODE (op) == REG && REG_POINTER (op));
/* Stack is always OK for indexing. */
if (op == stack_pointer_rtx)
return 1;
/* While it's always safe to index off the frame pointer, it's not /* While it's always safe to index off the frame pointer, it's not
always profitable, particularly when the frame pointer is being always profitable, particularly when the frame pointer is being
eliminated. */ eliminated. */
if (! flag_omit_frame_pointer && op == frame_pointer_rtx) if (! flag_omit_frame_pointer && op == frame_pointer_rtx)
return 1; return 1;
/* The only other valid OPs are pseudo registers with
REG_POINTER set. */
return (GET_CODE (op) == REG return (GET_CODE (op) == REG
&& REGNO (op) >= FIRST_PSEUDO_REGISTER && REG_POINTER (op)
&& register_operand (op, mode) && register_operand (op, mode));
&& REG_POINTER (op));
} }
/* Return 1 if this operand is anything other than a hard register. */ /* Return 1 if this operand is anything other than a hard register. */
......
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