mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user