Skip to content

Commit 64db140

Browse files
DianaChenigcbot
authored andcommitted
IGC: Fixed LSC checker in VectorProcess
In VectorProcess::reLayoutLoadStore, checks if LSC is used by "EmitPass::shouldGenerateLSCQuery" instead of "CPlatform::LSCEnabled" to align with the checker used in EmitPass::emitStoreRawIndexed. This avoids QW scatter/gather messages being generated on platforms those supporting LSC but don't support QW scatter/gather messages.
1 parent d0e3e4e commit 64db140

File tree

2 files changed

+448
-1
lines changed

2 files changed

+448
-1
lines changed

IGC/Compiler/CISACodeGen/VectorProcess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ bool VectorProcess::reLayoutLoadStore(Instruction* Inst)
311311
useQW = has_QW_BTS_GS && nelts == 1 && (eTyBytes == 8U && align >= 8U);
312312
}
313313

314-
if (cgCtx->platform.LSCEnabled())
314+
if (EmitPass::shouldGenerateLSCQuery(*cgCtx, Inst) == Tristate::True)
315315
{
316316
// With LSC, want to use QW if element size is 8 bytes.
317317
useQW = (eTyBytes == 8);

0 commit comments

Comments
 (0)