forked from OSchip/llvm-project
parent
6d6da255fb
commit
c100828026
|
@ -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(),
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue