]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/78120 (If conversion no longer performed)
authorBernd Schmidt <bernds@redhat.com>
Mon, 28 Nov 2016 08:59:01 +0000 (08:59 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 28 Nov 2016 08:59:01 +0000 (08:59 +0000)
PR rtl-optimization/78120
* rtlanal.c (insn_rtx_cost): Revert previous change.

From-SVN: r242908

gcc/ChangeLog
gcc/rtlanal.c

index 44ba41e74cc23a7b544278366dd24f100bfa03db..5b8913f811d98ad4001f67173c62f5b985031312 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-28  Bernd Schmidt  <bschmidt@redhat.com>
+
+       PR rtl-optimization/78120
+       * rtlanal.c (insn_rtx_cost): Revert previous change.
+
 2016-11-28  Georg-Johann Lay  <avr@gjlay.de>
 
        PR 41076
index 7521a4ece2df3afff68f82bd499804ba4b71cfd4..17dbb1eaeb10809b2416052eda4ed8bd3f015455 100644 (file)
@@ -5237,7 +5237,7 @@ insn_rtx_cost (rtx pat, bool speed)
   else
     return 0;
 
-  cost = set_rtx_cost (set, speed);
+  cost = set_src_cost (SET_SRC (set), GET_MODE (SET_DEST (set)), speed);
   return cost > 0 ? cost : COSTS_N_INSNS (1);
 }