================
@@ -12570,8 +12578,11 @@ SDValue SITargetLowering::LowerINTRINSIC_VOID(SDValue
Op,
BarVal = C->getZExtValue();
else if (auto *GA = dyn_cast<GlobalAddressSDNode>(BarOp))
if (auto Addr = AMDGPUMachineFunctionInfo::getLDSAbsoluteAddress(
- *GA->getGlobal()))
+ *GA->getGlobal())) {
+ assert(GA->getOffset() % 16 == 0 &&
+ "named barrier offset must land on a barrier object");
----------------
jayfoad wrote:
Same here.
https://github.com/llvm/llvm-project/pull/205216
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits