revert: re PR rtl-optimization/16590 (Incorrect execution when compiling with -O2)
authorMark Mitchell <mark@codesourcery.com>
Tue, 31 Aug 2004 06:31:06 +0000 (06:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 31 Aug 2004 06:31:06 +0000 (06:31 +0000)
Revert:
2004-08-29  Mark Mitchell  <mark@codesourcery.com>
PR rtl-optimization/16590
* gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.

* g++.dg/opt/loop1.C: XFAIL.

From-SVN: r86820

gcc/ChangeLog
gcc/gcse.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/loop1.C

index 1a4aa168673d6fbd9b3898a1fd2b90bcdcc30ce4..18a373d5b89ff2458b0f87c68bdb837f9a4a6aae 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-30  Mark Mitchell  <mark@codesourcery.com>
+
+       Revert:
+       2004-08-29  Mark Mitchell  <mark@codesourcery.com>
+       PR rtl-optimization/16590
+       * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
+
 2004-08-30  Andrew Pinski  <apinski@apple.com>
 
        * hard-reg-set.h: 
index 0d602801594dab7dc803a3e02611d1fb03812568..16d76fe4d6c760cc9cfe9d9c7735f893ba347d43 100644 (file)
@@ -4463,9 +4463,7 @@ pre_delete (void)
                  expr->reaching_reg
                    = gen_reg_rtx (GET_MODE (SET_DEST (set)));
 
-               emit_insn_after (gen_move_insn (SET_DEST (set), 
-                                               expr->reaching_reg), 
-                                insn);
+               gcse_emit_move_after (expr->reaching_reg, SET_DEST (set), insn);
                delete_insn (insn);
                occr->deleted_p = 1;
                SET_BIT (pre_redundant_insns, INSN_CUID (insn));
index f3dde948c8330f12dbd975e6bb1ed88c58062cc6..8e6d1be2a8ed79be593d0eaa5cdebfd470297f81 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-30  Mark Mitchell  <mark@codesourcery.com>
+
+       * g++.dg/opt/loop1.C: XFAIL.
+
 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
 
        * gcc.dg/funcdef-storage-1.c: New.
index ad0308e7f959879b6c933064c8fa82e8f80ffef6..a90e7a6c6fe32bb65dfe7b132934afe1459bfcf0 100644 (file)
@@ -1,5 +1,5 @@
 // PR rtl-optimization/16590
-// { dg-do run }
+// { dg-do run { xfail *-*-* } }
 // { dg-options "-O2" }
 
 extern "C" void abort();