re PR rtl-optimization/78120 (If conversion no longer performed)

PR rtl-optimization/78120
	* rtlanal.c (insn_rtx_cost): Use set_rtx_cost.

From-SVN: r242833
This commit is contained in:
Bernd Schmidt 2016-11-24 12:17:52 +00:00 committed by Bernd Schmidt
parent 7998af1f4b
commit 334442f282
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
PR rtl-optimization/78120
* rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
PR rtl-optimization/78120
* config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.

View file

@ -5237,7 +5237,7 @@ insn_rtx_cost (rtx pat, bool speed)
else
return 0;
cost = set_src_cost (SET_SRC (set), GET_MODE (SET_DEST (set)), speed);
cost = set_rtx_cost (set, speed);
return cost > 0 ? cost : COSTS_N_INSNS (1);
}