re PR tree-optimization/80153 (ivopt generate wrong code)
authorBin Cheng <bin.cheng@arm.com>
Mon, 10 Apr 2017 16:54:14 +0000 (16:54 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 10 Apr 2017 16:54:14 +0000 (16:54 +0000)
commit46bf3f84b6a117d94ac7479c9e13e05af82d9931
tree3fcd5bbc464fcdadacdb3cb3e35520b48db8f151
parentaac69a62a1b459379367979406430cf282e347af
re PR tree-optimization/80153 (ivopt generate wrong code)

PR tree-optimization/80153
* tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
remove POINTER_PLUS_EXPR's base part directly, rather than through
aff_tree.

From-SVN: r246811
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c