File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1170,6 +1170,7 @@ bool TranslateBuild(
11701170 if ( IGC_GET_FLAG_VALUE ( ForceFastestSIMD ) )
11711171 {
11721172 oclContext.m_retryManager .AdvanceState ();
1173+ oclContext.m_retryManager .SetFirstStateId (oclContext.m_retryManager .GetRetryId ());
11731174 }
11741175 // Optimize the IR. This happens once for each program, not per-kernel.
11751176 IGC::OptimizeIR (&oclContext);
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ namespace IGC
9292 IGC_ASSERT (stateId < getStateCnt ());
9393 return RetryTable[stateId].allowLargeURBWrite ;
9494 }
95+ void RetryManager::SetFirstStateId (int id) {
96+ firstStateId = id;
97+ }
9598 bool RetryManager::IsFirstTry () {
9699 return (stateId == firstStateId);
97100 }
Original file line number Diff line number Diff line change @@ -745,6 +745,7 @@ namespace IGC
745745 bool AllowCodeSinking ();
746746 bool AllowSimd32Slicing ();
747747 bool AllowLargeURBWrite ();
748+ void SetFirstStateId (int id);
748749 bool IsFirstTry ();
749750 bool IsLastTry ();
750751 unsigned GetRetryId () const ;
You can’t perform that action at this time.
0 commit comments