Fix test/Transforms/GVN/pre-load.ll
authorChris Lattner <sabre@nondot.org>
Fri, 5 Dec 2008 17:04:12 +0000 (17:04 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Dec 2008 17:04:12 +0000 (17:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60594 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/pre-load.ll

index 8bb83e53fb94506ab979101a94c418dea091a7e5..385de02322f1881ce8af3c5612111219ef0b9bfb 100644 (file)
@@ -1135,7 +1135,7 @@ bool GVN::processNonLocalLoad(LoadInst *LI,
   // Okay, we can eliminate this load by inserting a reload in the predecessor
   // and using PHI construction to get the value in the other predecessors, do
   // it.
-  /*DEBUG*/(cerr << "GVN REMOVING PRE LOAD: " << *LI);
+  DEBUG(cerr << "GVN REMOVING PRE LOAD: " << *LI);
   
   Value *NewLoad = new LoadInst(LoadPtr, LI->getName()+".pre", false,
                                 LI->getAlignment(),
index bc3ec5ba1a1cc05b83b2158cd06399312dddf312..5b52863b1c8d729c8dd4d4d442f971771167a21d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE.rle = phi}
+; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE = phi}
 
 define i32 @test(i32* %p, i1 %C) {
 block1: