Skip to content

Commit 9560122

Browse files
committed
[Autobackout][FuncReg]Revert of change: 73301ca
Skip tagging SLM. Change-Id: I99cb560c0293ca8444cd5717cd0448108d23ae41
1 parent 4d1b7bb commit 9560122

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,6 @@ namespace IGC
373373
return true;
374374
}
375375

376-
bool supportSLMTagging() const
377-
{
378-
return true;
379-
}
380376
// ***** Below go accessor methods for testing WA data from WA_TABLE *****
381377

382378
bool WaDoNotPushConstantsForAllPulledGSTopologies() const

IGC/Compiler/Optimizer/OpenCLPasses/LocalBuffers/InlineLocalsResolution.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ bool InlineLocalsResolution::runOnModule(Module& M)
120120
computeOffsetList(M, sizeMap);
121121

122122
LLVMContext& C = M.getContext();
123-
const auto pCtx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
124123

125124
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
126125
{
@@ -168,7 +167,7 @@ bool InlineLocalsResolution::runOnModule(Module& M)
168167

169168
bool UseAsPointerOnly = useAsPointerOnly(arg);
170169
unsigned Offset = totalSize;
171-
if (!UseAsPointerOnly && pCtx->platform.supportSLMTagging())
170+
if (!UseAsPointerOnly)
172171
Offset |= VALID_LOCAL_HIGH_BITS;
173172

174173
if (IsFirstSLMArgument) {
@@ -384,8 +383,6 @@ void InlineLocalsResolution::computeOffsetList(Module& M, std::map<Function*, un
384383
return;
385384
}
386385

387-
const auto pCtx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
388-
389386
// let's travese the CallGraph to calculate the local
390387
// variables of kernel from all user functions.
391388
m_chkSet.clear();
@@ -457,7 +454,7 @@ void InlineLocalsResolution::computeOffsetList(Module& M, std::map<Function*, un
457454
for (auto offsetIter = offsetMap[iter->first].begin(), offsetEnd = offsetMap[iter->first].end(); offsetIter != offsetEnd; ++offsetIter)
458455
{
459456
unsigned Offset = offsetIter->second;
460-
if (!useAsPointerOnly(offsetIter->first) && pCtx->platform.supportSLMTagging())
457+
if (!useAsPointerOnly(offsetIter->first))
461458
Offset |= VALID_LOCAL_HIGH_BITS;
462459

463460
LocalOffsetMD localOffset;

0 commit comments

Comments
 (0)