[llvm] ad6631f - [SCCP] Directly call SCCPSolver::isOverdefined (NFC) (#143059)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 22:58:14 PDT 2025
Author: Kazu Hirata
Date: 2025-06-05T22:58:10-07:00
New Revision: ad6631fb0db6d25665b135bcd48bb9667e894017
URL: https://github.com/llvm/llvm-project/commit/ad6631fb0db6d25665b135bcd48bb9667e894017
DIFF: https://github.com/llvm/llvm-project/commit/ad6631fb0db6d25665b135bcd48bb9667e894017.diff
LOG: [SCCP] Directly call SCCPSolver::isOverdefined (NFC) (#143059)
We don't need a lambda here.
Added:
Modified:
llvm/lib/Transforms/IPO/SCCP.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/SCCP.cpp b/llvm/lib/Transforms/IPO/SCCP.cpp
index 9d15dd0c10388..43c5df3575003 100644
--- a/llvm/lib/Transforms/IPO/SCCP.cpp
+++ b/llvm/lib/Transforms/IPO/SCCP.cpp
@@ -76,10 +76,8 @@ static void findReturnsToZap(Function &F,
if (!isa<CallBase>(U))
return true;
if (U->getType()->isStructTy()) {
- return all_of(Solver.getStructLatticeValueFor(U),
- [](const ValueLatticeElement &LV) {
- return !SCCPSolver::isOverdefined(LV);
- });
+ return none_of(Solver.getStructLatticeValueFor(U),
+ SCCPSolver::isOverdefined);
}
// We don't consider assume-like intrinsics to be actual address
More information about the llvm-commits
mailing list