Skip to content

Commit f5198f4

Browse files
iwwuigcbot
authored andcommitted
Enable largeGRF during retry
Enable largeGRF during retry
1 parent d1fb5cb commit f5198f4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

IGC/Compiler/CodeGenContext.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ namespace IGC
3232
bool allowVISAPreRAScheduler;
3333
bool allowLargeURBWrite;
3434
bool allowConstantCoalescing;
35+
bool allowLargeGRF;
3536
unsigned nextState;
3637
};
3738

3839
static const RetryState RetryTable[] = {
39-
{ true, true, false, false, true, true, true, true, true, 1 },
40-
{ false, true, true, true, false, false, false, false, false, 500 }
40+
// licm codSk AdrSk Slice PrivM PreRA VISAP URBWr Coals GRF
41+
{ true, true, false, false, true, true, true, true, true, false, 1 },
42+
{ false, true, true, true, false, false, false, false, false, true, 500 }
4143
};
4244

4345
static constexpr size_t RetryTableSize = sizeof(RetryTable) / sizeof(RetryState);
@@ -114,6 +116,12 @@ namespace IGC
114116
return RetryTable[stateId].allowConstantCoalescing;
115117
}
116118

119+
bool RetryManager::AllowLargeGRF() const
120+
{
121+
IGC_ASSERT(stateId < RetryTableSize);
122+
return RetryTable[stateId].allowLargeGRF;
123+
}
124+
117125
void RetryManager::SetFirstStateId(int id)
118126
{
119127
firstStateId = id;

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ namespace IGC
968968
bool AllowSimd32Slicing() const;
969969
bool AllowLargeURBWrite() const;
970970
bool AllowConstantCoalescing() const;
971+
bool AllowLargeGRF() const;
971972
void SetFirstStateId(int id);
972973
bool IsFirstTry() const;
973974
bool IsLastTry() const;

0 commit comments

Comments
 (0)