mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
0bee3f44ca
commit
383bcb2e78
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user