Commit 9d8de1de by Eric Botcazou Committed by Eric Botcazou

cse.c (cse_insn): Check that the tentative replacement was successfully forced to memory before...

	* cse.c (cse_insn) [src_folded]: Check that the tentative replacement
	was successfully forced to memory before using the result.

From-SVN: r72635
parent 67e53009
2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr> 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
* cse.c (cse_insn) [src_folded]: Check that the tentative replacement
was successfully forced to memory before using the result.
2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/8178 PR optimization/8178
* config/i386/i386.md (*movsi_zero): New insn to set * config/i386/i386.md (*movsi_zero): New insn to set
a register to zero on TARGET_USE_MOV0 targets. a register to zero on TARGET_USE_MOV0 targets.
......
...@@ -5416,7 +5416,11 @@ cse_insn (rtx insn, rtx libcall_insn) ...@@ -5416,7 +5416,11 @@ cse_insn (rtx insn, rtx libcall_insn)
{ {
trial = src_folded, src_folded_cost = MAX_COST; trial = src_folded, src_folded_cost = MAX_COST;
if (src_folded_force_flag) if (src_folded_force_flag)
trial = force_const_mem (mode, trial); {
rtx forced = force_const_mem (mode, trial);
if (forced)
trial = forced;
}
} }
else if (src else if (src
&& preferrable (src_cost, src_regcost, && preferrable (src_cost, src_regcost,
......
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