From 341c5337bfb2f281cbb377b3bbdbbdf503f3520e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 5 Jul 2016 18:13:46 +0200 Subject: [PATCH] * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P. From-SVN: r238011 --- gcc/ChangeLog | 4 ++++ gcc/tree-ssa-loop-niter.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de92a3efb8e..bc4b4db8944 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-07-05 Jan Hubicka + + * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P. + 2016-07-05 Jiong Wang * lra-constraints.c (process_alt_operands): Don't add spilling cost for diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 32fe2f91edd..0723752fbdc 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -4105,7 +4105,7 @@ n_of_executions_at_most (gimple *stmt, bool nowrap_type_p (tree type) { - if (INTEGRAL_TYPE_P (type) + if (ANY_INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_UNDEFINED (type)) return true; -- 2.30.2