We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c162ba commit af0b6b1Copy full SHA for af0b6b1
llvm/lib/CodeGen/AtomicExpandPass.cpp
@@ -1691,7 +1691,7 @@ Value *AtomicExpandImpl::insertRMWCmpXchgLoop(
1691
// Atomic RMW expands to a cmpxchg loop, Since precise branch weights
1692
// cannot be easily determined here, we mark the branch as "unknown" (50/50)
1693
// to prevent misleading optimizations.
1694
- setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, *F, DEBUG_TYPE);
+ setExplicitlyUnknownBranchWeightsIfProfiled(*CondBr, DEBUG_TYPE);
1695
1696
Builder.SetInsertPoint(ExitBB, ExitBB->begin());
1697
return NewLoaded;
0 commit comments