re PR tree-optimization/82397 (qsort comparator non-negative on sorted output: 1...
authorRichard Biener <rguenther@suse.de>
Fri, 6 Oct 2017 09:27:09 +0000 (09:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Oct 2017 09:27:09 +0000 (09:27 +0000)
commitd20eac1b41b9a86128a80f374e029d9638d14cba
tree049b9f13d10c464947754cf3b63b31f315f8dcc4
parentac95a65da150a120cf729d1a773af7417e263330
re PR tree-optimization/82397 (qsort comparator non-negative on sorted output: 1 in vect_analyze_data_ref_accesses)

2017-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82397
* tree-vect-data-refs.c (dr_group_sort_cmp): Do not use
operand_equal_p but rely on data_ref_compare_tree for detecting
equalities.
(vect_analyze_data_ref_accesses): Use data_ref_compare_tree
to match up with dr_group_sort_cmp.

* gfortran.dg/pr82397.f: New testcase.

From-SVN: r253482
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr82397.f [new file with mode: 0644]
gcc/tree-vect-data-refs.c