@@ -120,7 +120,6 @@ bool InlineLocalsResolution::runOnModule(Module& M)
120
120
computeOffsetList (M, sizeMap);
121
121
122
122
LLVMContext& C = M.getContext ();
123
- const auto pCtx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext ();
124
123
125
124
for (Module::iterator I = M.begin (), E = M.end (); I != E; ++I)
126
125
{
@@ -168,7 +167,7 @@ bool InlineLocalsResolution::runOnModule(Module& M)
168
167
169
168
bool UseAsPointerOnly = useAsPointerOnly (arg);
170
169
unsigned Offset = totalSize;
171
- if (!UseAsPointerOnly && pCtx-> platform . supportSLMTagging () )
170
+ if (!UseAsPointerOnly)
172
171
Offset |= VALID_LOCAL_HIGH_BITS;
173
172
174
173
if (IsFirstSLMArgument) {
@@ -384,8 +383,6 @@ void InlineLocalsResolution::computeOffsetList(Module& M, std::map<Function*, un
384
383
return ;
385
384
}
386
385
387
- const auto pCtx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext ();
388
-
389
386
// let's travese the CallGraph to calculate the local
390
387
// variables of kernel from all user functions.
391
388
m_chkSet.clear ();
@@ -457,7 +454,7 @@ void InlineLocalsResolution::computeOffsetList(Module& M, std::map<Function*, un
457
454
for (auto offsetIter = offsetMap[iter->first ].begin (), offsetEnd = offsetMap[iter->first ].end (); offsetIter != offsetEnd; ++offsetIter)
458
455
{
459
456
unsigned Offset = offsetIter->second ;
460
- if (!useAsPointerOnly (offsetIter->first ) && pCtx-> platform . supportSLMTagging () )
457
+ if (!useAsPointerOnly (offsetIter->first ))
461
458
Offset |= VALID_LOCAL_HIGH_BITS;
462
459
463
460
LocalOffsetMD localOffset;
0 commit comments