Skip to content

Commit af0b6b1

Browse files
authored
[ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled (#166601)
1 parent 3c162ba commit af0b6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AtomicExpandPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ Value *AtomicExpandImpl::insertRMWCmpXchgLoop(
16911691
// Atomic RMW expands to a cmpxchg loop, Since precise branch weights
16921692
// cannot be easily determined here, we mark the branch as "unknown" (50/50)
16931693
// to prevent misleading optimizations.
1694-
setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
1694+
setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, DEBUG_TYPE);
16951695

16961696
Builder.SetInsertPoint(ExitBB, ExitBB->begin());
16971697
return NewLoaded;

0 commit comments

Comments
 (0)