tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger when counting registe...
authorBin Cheng <bin.cheng@arm.com>
Thu, 11 May 2017 09:57:06 +0000 (09:57 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 11 May 2017 09:57:06 +0000 (09:57 +0000)
* tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
when counting register pressure.

From-SVN: r247898

gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c

index 9064bed..3430b1e 100644 (file)
@@ -1,5 +1,10 @@
 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
 
+       * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
+       when counting register pressure.
+
+2017-05-11  Bin Cheng  <bin.cheng@arm.com>
+
        * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
        (iv_ca_more_deps): Renamed to ...
        (iv_ca_compare_deps): ... this.
index 553310b..8b228ca 100644 (file)
@@ -5577,6 +5577,10 @@ determine_set_costs (struct ivopts_data *data)
       if (get_iv (data, op))
        continue;
 
+      if (!POINTER_TYPE_P (TREE_TYPE (op))
+         && !INTEGRAL_TYPE_P (TREE_TYPE (op)))
+       continue;
+
       n++;
     }