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 eda6ff7 commit 6fa9be6Copy full SHA for 6fa9be6
IGC/Compiler/CISACodeGen/CoalescingEngine.cpp
@@ -1248,6 +1248,10 @@ namespace IGC
1248
outProgram->GetContext()->platform.getGRFSize() == 64 ? EALIGN_32WORD : EALIGN_HWORD,
1249
"CEExplicitPayload");
1250
1251
+ // insert explicit lifetime start in case some of the operands are undefs
1252
+ // otherwise, VISA will see the variable as not fully initialized and will extend the lifetime all the way to the beginning of the kernel
1253
+ encoder->Lifetime(VISAVarLifetime::LIFETIME_START, payload);
1254
+
1255
for (uint i = 0; i < numOperands; i++)
1256
{
1257
Value* val = m_PayloadMapping.GetPayloadElementToValueMapping(inst, i);
0 commit comments