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 7c609b6 commit 56bd349Copy full SHA for 56bd349
llvm/lib/SYCLLowerIR/LowerWGLocalMemory.cpp
@@ -204,8 +204,9 @@ static bool dynamicWGLocalMemory(Module &M) {
204
GlobalVariable::NotThreadLocal, // ThreadLocalMode
205
LocalAS // AddressSpace
206
);
207
+ constexpr int DefaultMaxAlignment = 128;
208
if (!TT.isSPIROrSPIRV())
- LocalMemArrayGV->setAlignment(Align{128});
209
+ LocalMemArrayGV->setAlignment(Align{DefaultMaxAlignment});
210
}
211
lowerLocalMemCall(DLMFunc, [&](CallInst *CI) {
212
lowerDynamicLocalMemCallDirect(CI, TT, LocalMemArrayGV);
0 commit comments