mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 13:29:36 +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;
|
Value* s1 = 0;
|
||||||
if (isa<Instruction>(U->getOperand(0)))
|
if (isa<Instruction>(U->getOperand(0)))
|
||||||
s1 = find_leader(availableOut[*PI],
|
s1 = find_leader(availableOut[*PI], U->getOperand(0));
|
||||||
phi_translate(U->getOperand(0), *PI, BB));
|
|
||||||
else
|
else
|
||||||
s1 = U->getOperand(0);
|
s1 = U->getOperand(0);
|
||||||
|
|
||||||
Value* s2 = 0;
|
Value* s2 = 0;
|
||||||
if (isa<Instruction>(U->getOperand(1)))
|
if (isa<Instruction>(U->getOperand(1)))
|
||||||
s2 = find_leader(availableOut[*PI],
|
s2 = find_leader(availableOut[*PI], U->getOperand(1));
|
||||||
phi_translate(U->getOperand(1), *PI, BB));
|
|
||||||
else
|
else
|
||||||
s2 = U->getOperand(1);
|
s2 = U->getOperand(1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user