diff options
author | Owen Anderson <resistor@mac.com> | 2007-06-15 17:55:15 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-06-15 17:55:15 +0000 |
commit | 383bcb2e786157292384acbe20489147e11a2cda (patch) | |
tree | ffe41195b98b95c16e329607cbbd4742235b6008 | |
parent | 0bee3f44ca0cd63bb1fbfeff5184e9ca30363ebe (diff) |
Fix test/Transforms/GVNPRE/2007-06-15-Looping.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37595 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/GVNPRE.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp index 0e5e77c629..d52e4d378f 100644 --- a/lib/Transforms/Scalar/GVNPRE.cpp +++ b/lib/Transforms/Scalar/GVNPRE.cpp @@ -801,15 +801,13 @@ bool GVNPRE::runOnFunction(Function &F) { Value* s1 = 0; if (isa<Instruction>(U->getOperand(0))) - s1 = find_leader(availableOut[*PI], - phi_translate(U->getOperand(0), *PI, BB)); + s1 = find_leader(availableOut[*PI], U->getOperand(0)); else s1 = U->getOperand(0); Value* s2 = 0; if (isa<Instruction>(U->getOperand(1))) - s2 = find_leader(availableOut[*PI], - phi_translate(U->getOperand(1), *PI, BB)); + s2 = find_leader(availableOut[*PI], U->getOperand(1)); else s2 = U->getOperand(1); |