SCCPSolver: Remove unnecessary set empty check
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Dec 2022 13:20:28 +0000 (08:20 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Dec 2022 14:33:17 +0000 (09:33 -0500)
llvm/lib/Transforms/Utils/SCCPSolver.cpp

index 437d288..f18dc91 100644 (file)
@@ -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.