Move canonicalisation of dr_with_seg_len_pair_ts
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 16 Nov 2019 11:35:08 +0000 (11:35 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 16 Nov 2019 11:35:08 +0000 (11:35 +0000)
commit1fb2b0f69ee849142b669ba1b82264ce6d0f75f9
tree9ab378262a147835ac52a5a1213e24515fda2c5d
parent37a3662f76d79a1d9ff02a31e5cc0f7e20dfbc60
Move canonicalisation of dr_with_seg_len_pair_ts

The two users of tree-data-ref's runtime alias checks both canonicalise
the order of the dr_with_seg_lens in a pair before passing them to
prune_runtime_alias_test_list.  It's more convenient for later patches
if prune_runtime_alias_test_list does that itself.

2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-data-ref.c (prune_runtime_alias_test_list): Sort the
two accesses in each dr_with_seg_len_pair_t before trying to
combine separate dr_with_seg_len_pair_ts.
* tree-loop-distribution.c (compute_alias_check_pairs): Don't do
that here.
* tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.

From-SVN: r278348
gcc/ChangeLog
gcc/tree-data-ref.c
gcc/tree-loop-distribution.c
gcc/tree-vect-data-refs.c