mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-06 20:18:14 +00:00
minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5799,13 +5799,9 @@ Instruction *InstCombiner::PromoteCastOfAllocation(CastInst &CI,
|
|||||||
while (UI != E && *UI == User)
|
while (UI != E && *UI == User)
|
||||||
++UI; // If this instruction uses AI more than once, don't break UI.
|
++UI; // If this instruction uses AI more than once, don't break UI.
|
||||||
|
|
||||||
// Add operands to the worklist.
|
|
||||||
AddUsesToWorkList(*User);
|
|
||||||
++NumDeadInst;
|
++NumDeadInst;
|
||||||
DOUT << "IC: DCE: " << *User;
|
DOUT << "IC: DCE: " << *User;
|
||||||
|
EraseInstFromFunction(*User);
|
||||||
User->eraseFromParent();
|
|
||||||
removeFromWorkList(User);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7389,7 +7385,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
|||||||
|
|
||||||
if (Caller->getType() != Type::VoidTy && !Caller->use_empty())
|
if (Caller->getType() != Type::VoidTy && !Caller->use_empty())
|
||||||
Caller->replaceAllUsesWith(NV);
|
Caller->replaceAllUsesWith(NV);
|
||||||
Caller->getParent()->getInstList().erase(Caller);
|
Caller->eraseFromParent();
|
||||||
removeFromWorkList(Caller);
|
removeFromWorkList(Caller);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user