From 7f7c7366829f58d067fd6a02c0540a01908c5bc2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Dec 2008 17:04:12 +0000 Subject: [PATCH] Fix test/Transforms/GVN/pre-load.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60594 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVN.cpp | 2 +- test/Transforms/GVN/pre-load.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 8bb83e53fb9..385de02322f 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -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(), diff --git a/test/Transforms/GVN/pre-load.ll b/test/Transforms/GVN/pre-load.ll index bc3ec5ba1a1..5b52863b1c8 100644 --- a/test/Transforms/GVN/pre-load.ll +++ b/test/Transforms/GVN/pre-load.ll @@ -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: