[llvm] af0b6b1 - [ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled (#166601)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 10:16:07 PST 2025


Author: Tim Gymnich
Date: 2025-11-05T19:16:03+01:00
New Revision: af0b6b18a8690e98586f342d28bb97a29c0eb45d

URL: https://github.com/llvm/llvm-project/commit/af0b6b18a8690e98586f342d28bb97a29c0eb45d
DIFF: https://github.com/llvm/llvm-project/commit/af0b6b18a8690e98586f342d28bb97a29c0eb45d.diff

LOG: [ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled (#166601)

Added: 
    

Modified: 
    llvm/lib/CodeGen/AtomicExpandPass.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp
index bd62b1646c761..d9bc042d6807e 100644
--- a/llvm/lib/CodeGen/AtomicExpandPass.cpp
+++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp
@@ -1691,7 +1691,7 @@ Value *AtomicExpandImpl::insertRMWCmpXchgLoop(
   // Atomic RMW expands to a cmpxchg loop, Since precise branch weights
   // cannot be easily determined here, we mark the branch as "unknown" (50/50)
   // to prevent misleading optimizations.
-  setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
+  setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, DEBUG_TYPE);
 
   Builder.SetInsertPoint(ExitBB, ExitBB->begin());
   return NewLoaded;


        


More information about the llvm-commits mailing list