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
This commit is contained in:
Owen Anderson 2007-06-15 17:55:15 +00:00
parent 0bee3f44ca
commit 383bcb2e78

View File

@ -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);