forked from OSchip/llvm-project
[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:
parent
9b95186c30
commit
034e8d58a8
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue