mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
reenable the right part of the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
612e0b701f
commit
ae297f8da5
@ -208,7 +208,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {
|
|||||||
while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
|
while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
|
||||||
Value *NewVal = PN->getIncomingValue(0);
|
Value *NewVal = PN->getIncomingValue(0);
|
||||||
// Replace self referencing PHI with undef, it must be dead.
|
// Replace self referencing PHI with undef, it must be dead.
|
||||||
//if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
|
if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
|
||||||
PN->replaceAllUsesWith(NewVal);
|
PN->replaceAllUsesWith(NewVal);
|
||||||
PN->eraseFromParent();
|
PN->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user