Skip to content

Commit 353d8b8

Browse files
ichenkaiigcbot
authored andcommitted
Fix null operand issue
The compute shader from control dx12 could be compiled into a null operand issue for typeread or typewrite when doing insert branch optimization pass. This is to resolve to get the correct operand location.
1 parent 194a213 commit 353d8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CustomSafeOptPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7264,7 +7264,7 @@ void InsertBranchOpt::atomicSplitOpt(Function& F, int mode)
72647264
}
72657265
}
72667266

7267-
void typedWriteZeroStoreCheck(Function& F)
7267+
void typedWriteZeroStoreCheck(Function& F, CodeGenContext* pCtx)
72687268
{
72697269
for (auto BI = F.begin(), BE = F.end(); BI != BE; ++BI)
72707270
{
@@ -7521,7 +7521,7 @@ bool InsertBranchOpt::runOnFunction(Function& F)
75217521
ThreeWayLoadSpiltOpt(F);
75227522
}
75237523

7524-
typedWriteZeroStoreCheck(F);
7524+
typedWriteZeroStoreCheck(F, pContext);
75257525

75267526
return false;
75277527
}

0 commit comments

Comments
 (0)