[llvm] 95570af - SCCPSolver: Remove unnecessary set empty check
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 06:36:17 PST 2022
Author: Matt Arsenault
Date: 2022-12-21T09:33:17-05:00
New Revision: 95570af6fafe8cb683cb3edd2e9d53a41c46559c
URL: https://github.com/llvm/llvm-project/commit/95570af6fafe8cb683cb3edd2e9d53a41c46559c
DIFF: https://github.com/llvm/llvm-project/commit/95570af6fafe8cb683cb3edd2e9d53a41c46559c.diff
LOG: SCCPSolver: Remove unnecessary set empty check
Added:
Modified:
llvm/lib/Transforms/Utils/SCCPSolver.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SCCPSolver.cpp b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
index 437d2884e3f2f..f18dc91178c4b 100644
--- a/llvm/lib/Transforms/Utils/SCCPSolver.cpp
+++ b/llvm/lib/Transforms/Utils/SCCPSolver.cpp
@@ -1518,8 +1518,7 @@ void SCCPInstVisitor::handleCallArguments(CallBase &CB) {
// If this is a local function that doesn't have its address taken, mark its
// entry block executable and merge in the actual arguments to the call into
// the formal arguments of the function.
- if (!TrackingIncomingArguments.empty() &&
- TrackingIncomingArguments.count(F)) {
+ if (TrackingIncomingArguments.count(F)) {
markBlockExecutable(&F->front());
// Propagate information from this call site into the callee.
More information about the llvm-commits
mailing list