Skip to content

Commit 46853b9

Browse files
committed
[SCCP] Drop unused early exit from visitStoreInst (NFC).
There are no lattice values associated with store instructions directly. They will never get marked as overdefined.
1 parent f043677 commit 46853b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/Scalar/SCCP.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,11 +1061,6 @@ void SCCPSolver::visitStoreInst(StoreInst &SI) {
10611061
if (TrackedGlobals.empty() || !isa<GlobalVariable>(SI.getOperand(1)))
10621062
return;
10631063

1064-
// ResolvedUndefsIn might mark I as overdefined. Bail out, even if we would
1065-
// discover a concrete value later.
1066-
if (isOverdefined(ValueState[&SI]))
1067-
return (void)markOverdefined(&SI);
1068-
10691064
GlobalVariable *GV = cast<GlobalVariable>(SI.getOperand(1));
10701065
auto I = TrackedGlobals.find(GV);
10711066
if (I == TrackedGlobals.end())

0 commit comments

Comments
 (0)