Speculatively revert r97010, "Add an argument to PHITranslateValue to specify

the DominatorTree. ...", in hopes of restoring poor old PPC bootstrap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2010-02-24 06:55:22 +00:00
parent e832693acb
commit 8c0c99016b
4 changed files with 50 additions and 37 deletions

View File

@ -1633,8 +1633,13 @@ bool GVN::processNonLocalLoad(LoadInst *LI,
LoadPtr = Address.PHITranslateWithInsertion(LoadBB, UnavailablePred,
*DT, NewInsts);
} else {
Address.PHITranslateValue(LoadBB, UnavailablePred, DT);
Address.PHITranslateValue(LoadBB, UnavailablePred);
LoadPtr = Address.getAddr();
// Make sure the value is live in the predecessor.
if (Instruction *Inst = dyn_cast_or_null<Instruction>(LoadPtr))
if (!DT->dominates(Inst->getParent(), UnavailablePred))
LoadPtr = 0;
}
// If we couldn't find or insert a computation of this phi translated value,