Skip to content

Commit 1d50d7c

Browse files
trbauerigcbot
authored andcommitted
Internal feature
Internal feature
1 parent 46d7b8a commit 1d50d7c

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

IGC/AdaptorOCL/DriverInfoOCL.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ namespace TC
3838
bool enableVISAPreRAScheduler() const override { return true; }
3939

4040
bool NeedWAToTransformA32MessagesToA64() const override{ return true; }
41-
bool WALoadStorePatternMatch() const override { return true; }
4241
bool WADisableCustomPass() const override { return true; }
4342
bool WAEnableMemOpt2ForOCL() const override { return true; }
4443

IGC/Compiler/CISACodeGen/DriverInfo.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,6 @@ namespace IGC
211211
/// disable mad in Vertex shader to avoid ZFigthing issues
212212
virtual bool DisabeMatchMad() const { return false; }
213213

214-
/// WA bug in load store pattern match, needs to be cleaned up
215-
virtual bool WALoadStorePatternMatch() const { return false; }
216-
217214
/// Some FE sends SLM pointers in DWORD units
218215
virtual bool WASLMPointersDwordUnit() const { return false; }
219216

IGC/Compiler/CISACodeGen/PatternMatchPass.cpp

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,33 +1235,13 @@ namespace IGC
12351235

12361236
void CodeGenPatternMatch::visitStoreInst(StoreInst& I)
12371237
{
1238-
bool match = false;
1239-
// we try to fold some pointer values in GFX path, not OCL path
1240-
if (m_ctx->m_DriverInfo.WALoadStorePatternMatch())
1241-
{
1242-
match = MatchSingleInstruction(I);
1243-
}
1244-
else
1245-
{
1246-
match = MatchLoadStorePointer(I, *(I.getPointerOperand())) ||
1247-
MatchSingleInstruction(I);
1248-
}
1238+
bool match = MatchSingleInstruction(I);
12491239
IGC_ASSERT(match);
12501240
}
12511241

12521242
void CodeGenPatternMatch::visitLoadInst(LoadInst& I)
12531243
{
1254-
bool match = false;
1255-
// we try to fold some pointer values in GFX path, not OCL path
1256-
if (m_ctx->m_DriverInfo.WALoadStorePatternMatch())
1257-
{
1258-
match = MatchSingleInstruction(I);
1259-
}
1260-
else
1261-
{
1262-
match = MatchLoadStorePointer(I, *(I.getPointerOperand())) ||
1263-
MatchSingleInstruction(I);
1264-
}
1244+
bool match = MatchSingleInstruction(I);
12651245
IGC_ASSERT(match);
12661246
}
12671247

0 commit comments

Comments
 (0)