OSDN Git Service

Ignore no-ops in cprop pass.
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 1999 17:33:35 +0000 (17:33 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 1999 17:33:35 +0000 (17:33 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28901 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcse.c

index b19980a..3351ad0 100644 (file)
@@ -1,3 +1,7 @@
+Thu Aug 26 18:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
+
 1999-08-26 09:42 -0700  Zack Weinberg  <zack@bitmover.com>
 
        * tree.h: fancy_abort always takes three args.
index 7a484ab..3fa620a 100644 (file)
@@ -1919,7 +1919,11 @@ hash_scan_insn (insn, set_p, in_libcall_block)
      what's been modified.  */
 
   if (GET_CODE (pat) == SET && ! in_libcall_block)
-    hash_scan_set (pat, insn, set_p);
+    {
+      /* Ignore obvious no-ops.  */
+      if (SET_SRC (pat) != SET_DEST (pat))
+       hash_scan_set (pat, insn, set_p);
+    }
   else if (GET_CODE (pat) == PARALLEL)
     {
       int i;