[llvm] [PowerPC] support branch hint for AtomicExpandImpl::expandAtomicCmpXchg (PR #152366)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 18:52:12 PDT 2025
================
@@ -12816,6 +12817,11 @@ Value *PPCTargetLowering::emitStoreConditional(IRBuilderBase &Builder,
return Builder.CreateXor(Call, Builder.getInt32(1));
}
+MDNode *PPCTargetLowering::getTrueBranchHintWeightForAtomicCmpXchgg(
+ LLVMContext &Ctx) const {
+ return MDBuilder(Ctx).createLikelyBranchWeights();
----------------
arsenm wrote:
The details of what the target is going to do with the metadata is unimportant, this is a generic branch likely hint.
https://github.com/llvm/llvm-project/pull/152366
More information about the llvm-commits
mailing list