summaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2016-07-05 18:02:52 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-07-05 16:02:52 +0000
commit1210573b1dc2b4151f7a1076e23d05f605f22b39 (patch)
tree8dcf089ac09cc11386b45c57779ad02a47cbaabe /gcc/tree-scalar-evolution.c
parent84ca38932bd55f3fc058f4d17c46d132a3745042 (diff)
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
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c3
1 files changed, 1 insertions, 2 deletions
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: