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

Tim Gymnich via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 10:06:27 PST 2025


================
@@ -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, *F);
----------------
tgymnich wrote:

dropped

https://github.com/llvm/llvm-project/pull/166601


More information about the llvm-commits mailing list