Commit 94aca67a by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR rtl-optimization/41064 (build breakage for cris-elf building newlib, ICE…

re PR rtl-optimization/41064 (build breakage for cris-elf building newlib, ICE in extract_insn, from r150726)

	PR rtl-optimization/41064
	* reload1.c (reload_as_needed): Don't call extract_insn
	for known invalid replacements after calling
	validate_replace_rtx_group and verify_changes.

From-SVN: r150751
parent 1262fd02
2009-08-14 Hans-Peter Nilsson <hp@axis.com>
PR rtl-optimization/41064
* reload1.c (reload_as_needed): Don't call extract_insn
for known invalid replacements after calling
validate_replace_rtx_group and verify_changes.
2009-08-14 Uros Bizjak <ubizjak@gmail.com>
PR target/41019
......
......@@ -4312,10 +4312,15 @@ reload_as_needed (int live_known)
n = verify_changes (0);
/* We must also verify that the constraints
are met after the replacement. */
extract_insn (p);
are met after the replacement. Make sure
extract_insn is only called for an insn
where the replacements were found to be
valid so far. */
if (n)
n = constrain_operands (1);
{
extract_insn (p);
n = constrain_operands (1);
}
/* If the constraints were not met, then
undo the replacement, else confirm it. */
......
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