Commit f8fb3155 by Segher Boessenkool Committed by Segher Boessenkool

recog.c (scratch_operand): Do not simply allow all hard registers: only allow…

recog.c (scratch_operand): Do not simply allow all hard registers: only allow those that are allocatable.

2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>

	* recog.c (scratch_operand): Do not simply allow all hard registers:
	only allow those that are allocatable.

From-SVN: r215399
parent 2b9c63a2
2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
* recog.c (scratch_operand): Do not simply allow all hard registers:
only allow those that are allocatable.
2014-09-19 Felix Yang <felix.yang@huawei.com> 2014-09-19 Felix Yang <felix.yang@huawei.com>
* cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
...@@ -1143,7 +1143,9 @@ scratch_operand (rtx op, enum machine_mode mode) ...@@ -1143,7 +1143,9 @@ scratch_operand (rtx op, enum machine_mode mode)
return (GET_CODE (op) == SCRATCH return (GET_CODE (op) == SCRATCH
|| (REG_P (op) || (REG_P (op)
&& (lra_in_progress || REGNO (op) < FIRST_PSEUDO_REGISTER))); && (lra_in_progress
|| (REGNO (op) < FIRST_PSEUDO_REGISTER
&& REGNO_REG_CLASS (REGNO (op)) != NO_REGS))));
} }
/* Return 1 if OP is a valid immediate operand for mode MODE. /* Return 1 if OP is a valid immediate operand for mode MODE.
......
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