public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/slp-function-v3)] Split by BB::index in dr_group_sort_cmp.
@ 2020-06-11 12:50 Martin Liska
0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2020-06-11 12:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:eb0c1c57820465b6970caac6dc34e5d232afc0d9
commit eb0c1c57820465b6970caac6dc34e5d232afc0d9
Author: Martin Liska <mliska@suse.cz>
Date: Thu Jun 11 14:50:08 2020 +0200
Split by BB::index in dr_group_sort_cmp.
Diff:
---
gcc/tree-vect-data-refs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c
index 39d5a1b554c..66c666323a3 100644
--- a/gcc/tree-vect-data-refs.c
+++ b/gcc/tree-vect-data-refs.c
@@ -2826,10 +2826,10 @@ dr_group_sort_cmp (const void *dra_, const void *drb_)
return 0;
/* DRs in different loops never belong to the same group. */
- loop_p loopa = gimple_bb (DR_STMT (dra))->loop_father;
- loop_p loopb = gimple_bb (DR_STMT (drb))->loop_father;
- if (loopa != loopb)
- return loopa->num < loopb->num ? -1 : 1;
+ int bb_index1 = gimple_bb (DR_STMT (dra))->index;
+ int bb_index2 = gimple_bb (DR_STMT (drb))->index;
+ if (bb_index1 != bb_index2)
+ return bb_index1 < bb_index2 ? -1 : 1;
/* Ordering of DRs according to base. */
cmp = data_ref_compare_tree (DR_BASE_ADDRESS (dra),
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/marxin/heads/slp-function-v3)] Split by BB::index in dr_group_sort_cmp.
@ 2020-06-12 9:28 Martin Liska
0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2020-06-12 9:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:45f9338973ce7543b00f4f1956c91734277fcf6a
commit 45f9338973ce7543b00f4f1956c91734277fcf6a
Author: Martin Liska <mliska@suse.cz>
Date: Thu Jun 11 14:50:08 2020 +0200
Split by BB::index in dr_group_sort_cmp.
Diff:
---
gcc/tree-vect-data-refs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c
index 39d5a1b554c..66c666323a3 100644
--- a/gcc/tree-vect-data-refs.c
+++ b/gcc/tree-vect-data-refs.c
@@ -2826,10 +2826,10 @@ dr_group_sort_cmp (const void *dra_, const void *drb_)
return 0;
/* DRs in different loops never belong to the same group. */
- loop_p loopa = gimple_bb (DR_STMT (dra))->loop_father;
- loop_p loopb = gimple_bb (DR_STMT (drb))->loop_father;
- if (loopa != loopb)
- return loopa->num < loopb->num ? -1 : 1;
+ int bb_index1 = gimple_bb (DR_STMT (dra))->index;
+ int bb_index2 = gimple_bb (DR_STMT (drb))->index;
+ if (bb_index1 != bb_index2)
+ return bb_index1 < bb_index2 ? -1 : 1;
/* Ordering of DRs according to base. */
cmp = data_ref_compare_tree (DR_BASE_ADDRESS (dra),
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-12 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 12:50 [gcc(refs/users/marxin/heads/slp-function-v3)] Split by BB::index in dr_group_sort_cmp Martin Liska
2020-06-12 9:28 Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).