re PR tree-optimization/77444 (Bogus assignments in cand_value_at)
PR tree-optimization/77444 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype as steptype, remove redundant initialization. Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r239962
This commit is contained in:
parent
94087e88e0
commit
bad9b2889a
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2016-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
Richard Biener <rguenth@suse.de>
|
||||
|
||||
PR tree-optimization/77444
|
||||
* tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
|
||||
as steptype, remove redundant initialization.
|
||||
|
||||
2016-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/77396
|
||||
|
|
|
@ -5168,10 +5168,11 @@ cand_value_at (struct loop *loop, struct iv_cand *cand, gimple *at, tree niter,
|
|||
aff_tree step, delta, nit;
|
||||
struct iv *iv = cand->iv;
|
||||
tree type = TREE_TYPE (iv->base);
|
||||
tree steptype = type;
|
||||
tree steptype;
|
||||
if (POINTER_TYPE_P (type))
|
||||
steptype = sizetype;
|
||||
steptype = unsigned_type_for (type);
|
||||
else
|
||||
steptype = unsigned_type_for (type);
|
||||
|
||||
tree_to_aff_combination (iv->step, TREE_TYPE (iv->step), &step);
|
||||
aff_combination_convert (&step, steptype);
|
||||
|
|
Loading…
Add table
Reference in a new issue