tree-ssa-dom.c (record_equivalences_from_phis): Speed up by doing a pointer comparison.
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 13 Dec 2004 15:15:48 +0000 (15:15 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 13 Dec 2004 15:15:48 +0000 (15:15 +0000)
* tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
doing a pointer comparison.

From-SVN: r92089

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 92b6190a9fecbbec58e067762f44eb7843f3b2c9..6768b17ed09c8f29ffa7a0b3e1baf6d8c3eb0d72 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-13  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
+       doing a pointer comparison.
+
 2004-12-13  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
 
        * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
index 72ab570ddd4ef348c33a53d4fe47330f4846ead7..def20d6539d7b8d62ee8dfdd763278322da8558e 100644 (file)
@@ -1178,7 +1178,7 @@ record_equivalences_from_phis (basic_block bb)
          tree t = PHI_ARG_DEF (phi, i);
 
          /* Ignore alternatives which are the same as our LHS.  */
-         if (operand_equal_for_phi_arg_p (lhs, t))
+         if (lhs == t)
            continue;
 
          /* If we have not processed an alternative yet, then set