Skip to content

Commit aa9b3c7

Browse files
davidjwooigcbot
authored andcommitted
Refactoring
1 parent 670eeba commit aa9b3c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4888,10 +4888,15 @@ void EmitPass::emitRenderTargetWrite(llvm::RTWritIntrinsic* inst, bool fromRet)
48884888
if (!cv || cv->getZExtValue() == 0)
48894889
{
48904890
pMaskOpnd = GetSymbol(pMask);
4891-
m_encoder->SetPredicate(pMaskOpnd);
48924891
}
48934892
}
48944893

4894+
4895+
if (pMaskOpnd)
4896+
{
4897+
m_encoder->SetPredicate(pMaskOpnd);
4898+
}
4899+
48954900
bool isHeaderMaskFromCe0 =
48964901
!isa<ReturnInst>(inst->getParent()->getTerminator()) &&
48974902
pMaskOpnd == nullptr;

0 commit comments

Comments
 (0)