Revert: Workaround following [PATCH] Pul all constants last in tree_swap_operands_p
authorAlan Lawrence <alan.lawrence@arm.com>
Fri, 21 Nov 2014 14:44:31 +0000 (14:44 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Fri, 21 Nov 2014 14:44:31 +0000 (14:44 +0000)
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01509.html
2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
gcc/:
         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.

From-SVN: r217927

gcc/ChangeLog
gcc/fold-const.c

index 4b14d1d62a05b20bb994ab3ccf0ff39b59dbd1b2..9902e537dbb29468311741b4e8c15ca56e95abf8 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-21  Alan Lawrence  <alan.lawrence@arm.com>
+
+       Revert:
+       2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
+       * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
+
 2014-11-21  Andrew Bennett  <andrew.bennett@imgtec.com>
 
        * config/mips/mips.c (mips_process_sync_loop): Place a 
index 9183430205becea5fe90c45a115db000951cadf6..740bf0bc17cdfd71048474494cfb52bd7430c31f 100644 (file)
@@ -6606,8 +6606,8 @@ tree_swap_operands_p (const_tree arg0, const_tree arg1, bool reorder)
   if (CONSTANT_CLASS_P (arg0))
     return 1;
 
-  STRIP_SIGN_NOPS (arg0);
-  STRIP_SIGN_NOPS (arg1);
+  STRIP_NOPS (arg0);
+  STRIP_NOPS (arg1);
 
   if (TREE_CONSTANT (arg1))
     return 0;