llvm.org GIT mirror llvm / 7f7c736
Fix test/Transforms/GVN/pre-load.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60594 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
11341134 // Okay, we can eliminate this load by inserting a reload in the predecessor
11351135 // and using PHI construction to get the value in the other predecessors, do
11361136 // it.
1137 /*DEBUG*/(cerr << "GVN REMOVING PRE LOAD: " << *LI);
1137 DEBUG(cerr << "GVN REMOVING PRE LOAD: " << *LI);
11381138
11391139 Value *NewLoad = new LoadInst(LoadPtr, LI->getName()+".pre", false,
11401140 LI->getAlignment(),
None ; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE.rle = phi}
0 ; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE = phi}
11
22 define i32 @test(i32* %p, i1 %C) {
33 block1: