[SCCP] Drop unused early exit from visitReturnInst (NFC).

There are no lattice values associated with return instructions
directly. They will never get marked as overdefined.
This commit is contained in:
Florian Hahn 2020-04-18 13:48:53 +01:00
parent 9b95186c30
commit 034e8d58a8
1 changed files with 0 additions and 5 deletions

View File

@ -746,11 +746,6 @@ void SCCPSolver::visitPHINode(PHINode &PN) {
void SCCPSolver::visitReturnInst(ReturnInst &I) {
if (I.getNumOperands() == 0) return; // ret void
// ResolvedUndefsIn might mark I as overdefined. Bail out, even if we would
// discover a concrete value later.
if (isOverdefined(ValueState[&I]))
return (void)markOverdefined(&I);
Function *F = I.getParent()->getParent();
Value *ResultOp = I.getOperand(0);