re PR tree-optimization/50067 (Wrong code with -fpredictive-commoning)
authorRichard Guenther <rguenther@suse.de>
Wed, 24 Aug 2011 10:07:20 +0000 (10:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 24 Aug 2011 10:07:20 +0000 (10:07 +0000)
commit8c330caa3b6e53a2b9bf0e36e90c2261d15b1777
treefc7988f1e91f1893a1dc187b191cac060c088615
parent68fde241770b71c23d6b4d790a5b4ae1134e09dc
re PR tree-optimization/50067 (Wrong code with -fpredictive-commoning)

2011-08-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50067
* tree-data-ref.c (dr_analyze_indices): Do not add an access
function for a MEM_REF base that has no evolution in the loop
nest or that is not analyzable.

* gcc.dg/torture/pr50067-3.c: New testcase.
* gcc.dg/torture/pr50067-4.c: Likewise.
* gcc.dg/torture/pr50067-5.c: Likewise.

From-SVN: r178028
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr50067-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr50067-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr50067-5.c [new file with mode: 0644]
gcc/tree-data-ref.c