Skip to content

[ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled#166601

Merged
tgymnich merged 2 commits into
llvm:mainfrom
tgymnich:tim/fix-ProfCheck
Nov 5, 2025
Merged

[ProfCheck][NFC] fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled#166601
tgymnich merged 2 commits into
llvm:mainfrom
tgymnich:tim/fix-ProfCheck

Conversation

@tgymnich

@tgymnich tgymnich commented Nov 5, 2025

Copy link
Copy Markdown
Member
  • fix argument order for call to setExplicitlyUnknownBranchWeightsIfProfiled

Comment thread llvm/lib/CodeGen/AtomicExpandPass.cpp Outdated
@@ -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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can drop the function parameter here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dropped

@tgymnich tgymnich enabled auto-merge (squash) November 5, 2025 18:15
@tgymnich tgymnich disabled auto-merge November 5, 2025 18:15
@tgymnich tgymnich merged commit af0b6b1 into llvm:main Nov 5, 2025
5 of 9 checks passed
@kazutakahirata

Copy link
Copy Markdown
Contributor

@tgymnich Thank you for fixing this quickly!

@tgymnich tgymnich deleted the tim/fix-ProfCheck branch March 28, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants