From 1210573b1dc2b4151f7a1076e23d05f605f22b39 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 5 Jul 2016 18:02:52 +0200 Subject: tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if IV can overflow. * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if IV can overflow. From-SVN: r238009 --- gcc/tree-scalar-evolution.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/tree-scalar-evolution.c') diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index d6f2a2fba14..7c4c4336728 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -3375,8 +3375,7 @@ simple_iv (struct loop *wrto_loop, struct loop *use_loop, tree op, if (tree_contains_chrecs (iv->base, NULL)) return false; - iv->no_overflow = (!folded_casts && ANY_INTEGRAL_TYPE_P (type) - && TYPE_OVERFLOW_UNDEFINED (type)); + iv->no_overflow = !folded_casts && nowrap_type_p (type); /* Try to simplify iv base: -- cgit v1.2.3