From: Bin Cheng Date: Thu, 11 May 2017 09:57:06 +0000 (+0000) Subject: tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger when counting registe... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab9e91f9fcc9f7b0b8d848f1ba698bc46ce70922;p=gcc.git tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger when counting register pressure. * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger when counting register pressure. From-SVN: r247898 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9064bed16bc..3430b1e3c7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-11 Bin Cheng + + * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger + when counting register pressure. + 2017-05-11 Bin Cheng * tree-ssa-loop-ivopts.c (compare_cost_pair): New. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 553310be40c..8b228ca5e51 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -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++; }