diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-27 05:53:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 05:53:01 +0000 |
commit | b99be5beac847a92a56af21131da56a94b194bf2 (patch) | |
tree | aa4bcd6084eb4f62cedc798d9c23cf89f9874dcc | |
parent | cca130bb66a927b82fd030d60d1e8048898d1624 (diff) | |
download | external_llvm-b99be5beac847a92a56af21131da56a94b194bf2.zip external_llvm-b99be5beac847a92a56af21131da56a94b194bf2.tar.gz external_llvm-b99be5beac847a92a56af21131da56a94b194bf2.tar.bz2 |
redisable this, my bootstrap worked because it wasn't an optimized build, whoops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89991 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 1 | ||||
-rw-r--r-- | test/Transforms/GVN/rle-phi-translate.ll | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 1025fd5..f36a220 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -700,6 +700,7 @@ static bool isPHITranslatable(Instruction *Inst) { // We can translate a GEP that uses a PHI in the current block for at least // one of its operands. + if (0) if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) if (PHINode *PN = dyn_cast<PHINode>(GEP->getOperand(i))) diff --git a/test/Transforms/GVN/rle-phi-translate.ll b/test/Transforms/GVN/rle-phi-translate.ll index 912f580..738e7b5 100644 --- a/test/Transforms/GVN/rle-phi-translate.ll +++ b/test/Transforms/GVN/rle-phi-translate.ll @@ -80,9 +80,9 @@ bb2: %i = phi i32 [ 7, %bb1 ], [ 17, %bb ] %d1 = getelementptr i32* %d, i32 %i %dv = load i32* %d1 -; CHECK: %dv = phi i32 [ 82, %bb1 ], [ 4, %bb ] -; CHECK-NOT: load -; CHECK: ret i32 %dv +; HECK: %dv = phi i32 [ 82, %bb1 ], [ 4, %bb ] +; HECK-NOT: load +; HECK: ret i32 %dv ret i32 %dv } @@ -106,9 +106,9 @@ bb2: %i = phi i32 [ 7, %bb1 ], [ 0, %bb ] %d1 = getelementptr i32* %d, i32 %i %dv = load i32* %d1 -; CHECK: %dv = phi i32 [ 82, %bb1 ], [ 4, %bb ] -; CHECK-NOT: load -; CHECK: ret i32 %dv +; HECK: %dv = phi i32 [ 82, %bb1 ], [ 4, %bb ] +; HECK-NOT: load +; HECK: ret i32 %dv ret i32 %dv } |