From eed905e9f236f7b7eaba946232851de9d4b27de8 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 20 Nov 2015 16:27:17 +0000 Subject: [PATCH] Fix cygwin performance loss on linpack. gcc/ * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS. From-SVN: r230667 --- gcc/ChangeLog | 4 ++++ gcc/tree-vect-data-refs.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33e4f41ca3f..e5607466d36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-11-20 Jim Wilson + + * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS. + 2015-11-20 Evandro Menezes * config/aarch64/aarch64.md (predicated): Copy attribute from diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 9ee6efe73e0..f4436b54430 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -2545,6 +2545,8 @@ compare_tree (tree t1, tree t2) if (t2 == NULL) return 1; + STRIP_NOPS (t1); + STRIP_NOPS (t2); if (TREE_CODE (t1) != TREE_CODE (t2)) return TREE_CODE (t1) < TREE_CODE (t2) ? -1 : 1; -- 2.30.2