diff options
author | Jan Hubicka <jh@suse.cz> | 2016-07-05 18:02:52 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-07-05 16:02:52 +0000 |
commit | 1210573b1dc2b4151f7a1076e23d05f605f22b39 (patch) | |
tree | 8dcf089ac09cc11386b45c57779ad02a47cbaabe /gcc/tree-scalar-evolution.c | |
parent | 84ca38932bd55f3fc058f4d17c46d132a3745042 (diff) | |
download | gcc-1210573b1dc2b4151f7a1076e23d05f605f22b39.zip gcc-1210573b1dc2b4151f7a1076e23d05f605f22b39.tar.gz gcc-1210573b1dc2b4151f7a1076e23d05f605f22b39.tar.bz2 |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index d6f2a2f..7c4c433 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: |