Commit 3c11e1af by Jiong Wang Committed by Jiong Wang

[Patch, lra] Guard in_class_p with REG_P check

gcc/

	PR rtl-optimization/71150
	* lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
	check.

From-SVN: r236396
parent 20309c6e
2016-05-18 Jiong Wang <jiong.wang@arm.com>
PR rtl-optimization/71150
* lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
check.
2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com> 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/70915 PR target/70915
......
...@@ -1317,7 +1317,8 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft ...@@ -1317,7 +1317,8 @@ process_addr_reg (rtx *loc, bool check_only_p, rtx_insn **before, rtx_insn **aft
register, and this normally will be a subreg which should be reloaded register, and this normally will be a subreg which should be reloaded
as a whole. This is particularly likely to be triggered when as a whole. This is particularly likely to be triggered when
-fno-split-wide-types specified. */ -fno-split-wide-types specified. */
if (in_class_p (reg, cl, &new_class) if (!REG_P (reg)
|| in_class_p (reg, cl, &new_class)
|| GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode)) || GET_MODE_SIZE (mode) <= GET_MODE_SIZE (ptr_mode))
loc = &SUBREG_REG (*loc); loc = &SUBREG_REG (*loc);
} }
......
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