PR rtl-optimization/30967
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 19:14:07 +0000 (19:14 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 19:14:07 +0000 (19:14 +0000)
* config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
destination mode for the cost of scc patterns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223174 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index d34287c..0afa5b3 100644 (file)
@@ -1,3 +1,9 @@
+2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR rtl-optimization/30967
+       * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
+       destination mode for the cost of scc patterns.
+
 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
index ec7332c..50d6391 100644 (file)
@@ -30640,7 +30640,7 @@ rs6000_rtx_costs (rtx x, int code, int outer_code, int opno ATTRIBUTE_UNUSED,
                *total = COSTS_N_INSNS (2);
              return true;
            }
-         else if (mode == Pmode)
+         else
            {
              *total = COSTS_N_INSNS (3);
              return false;