Skip to content

Commit ad6631f

Browse files
[SCCP] Directly call SCCPSolver::isOverdefined (NFC) (#143059)
We don't need a lambda here.
1 parent bcf8ded commit ad6631f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/IPO/SCCP.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ static void findReturnsToZap(Function &F,
7676
if (!isa<CallBase>(U))
7777
return true;
7878
if (U->getType()->isStructTy()) {
79-
return all_of(Solver.getStructLatticeValueFor(U),
80-
[](const ValueLatticeElement &LV) {
81-
return !SCCPSolver::isOverdefined(LV);
82-
});
79+
return none_of(Solver.getStructLatticeValueFor(U),
80+
SCCPSolver::isOverdefined);
8381
}
8482

8583
// We don't consider assume-like intrinsics to be actual address

0 commit comments

Comments
 (0)