[llvm] [ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled (PR #166601)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 5 10:04:11 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);
----------------
boomanaiden154 wrote:
I think we can drop the function parameter here.
https://github.com/llvm/llvm-project/pull/166601
More information about the llvm-commits
mailing list