Skip to content

Commit de4fb2a

Browse files
jaladreipsigcbot
authored andcommitted
Do not nomask loads on platforms that don't support LSC
Do not nomask loads on platforms that don't support LSC
1 parent 506b554 commit de4fb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ bool EmitPass::IsNoMaskAllowed(SDAG& sdag)
270270
{
271271
if (auto* I = dyn_cast<LoadInst>(sdag.m_root))
272272
{
273-
if (IGC_IS_FLAG_ENABLED(UseVMaskPredicateForLoads))
273+
if (IGC_IS_FLAG_ENABLED(UseVMaskPredicateForLoads) && shouldGenerateLSC(I))
274274
return true;
275275

276276
BufferType bufType = DecodeBufferType(I->getPointerAddressSpace());

0 commit comments

Comments
 (0)