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 9064bed16bcb0dfeab4edb09fd3002ebfea3116e..3430b1e3c7cf25d0c1fda7e5fdfc18501962c4eb 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 553310be40c9b0a0d6c21b0d04f3fc2006e78866..8b228ca5e51712ead702de1c8ac1e028dbcfb36b 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++;
     }