re PR tree-optimization/84132 (tree-data-ref.c:3938: poor coding ?)
authorRichard Biener <rguenther@suse.de>
Wed, 31 Jan 2018 13:07:53 +0000 (13:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 31 Jan 2018 13:07:53 +0000 (13:07 +0000)
commit957a25ab0c76a2beb268aad005804da41e136c37
treed442cd53b63f1845e4293e36ab75ae5536aa9c27
parent8ede319fa972ea06c54fe90deb88334b94401bcb
re PR tree-optimization/84132 (tree-data-ref.c:3938: poor coding ?)

2018-01-31  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84132
* tree-data-ref.c (analyze_miv_subscript): Properly
check whether evolution_function_is_affine_multivariate_p
before calling gcd_of_steps_may_divide_p.

* g++.dg/torture/pr84132.C: New testcase.

From-SVN: r257232
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr84132.C [new file with mode: 0644]
gcc/tree-data-ref.c