================
@@ -1215,7 +1280,7 @@ void InstrLowerer::lowerIncrement(InstrProfIncrementInst
*Inc) {
Value *StepI64 =
Builder.CreateZExtOrTrunc(Inc->getStep(), Int64Ty, "step.i64");
Builder.CreateCall(Callee, {CastAddr, Uniform, StepI64});
- } else if (Options.Atomic || AtomicCounterUpdateAll ||
+ } else if ((!isCounterPromotionEnabled() && isAtomic()) ||
----------------
david-xl wrote:
Add a comment "Delay atomic operation creation until after promotion".
https://github.com/llvm/llvm-project/pull/202487
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits