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
This commit is contained in:
Jan Hubicka 2016-07-05 18:02:52 +02:00 committed by Jan Hubicka
parent 84ca38932b
commit 1210573b1d
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-07-05 Jan Hubicka <jh@suse.cz>
* tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
IV can overflow.
2016-07-05 Richard Biener <rguenther@suse.de>
* gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):

View File

@ -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: