File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -283,19 +283,21 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
283
283
}
284
284
}
285
285
286
- if (isEntryFunc (pMdUtils, F))
286
+ bool istrue = false ;
287
+
288
+ const bool isKernel = isEntryFunc (pMdUtils, F);
289
+
290
+ if (isKernel && !istrue)
287
291
{
288
292
// No need to process kernel funcs any further
289
293
continue ;
290
294
}
291
- else
295
+ else if (!isKernel)
292
296
{
293
297
F->setLinkage (GlobalValue::InternalLinkage);
294
298
Changed = true ;
295
299
}
296
300
297
-
298
- bool istrue = false ;
299
301
// Add function attribute for indirectly called functions
300
302
if (IGC_IS_FLAG_ENABLED (EnableFunctionPointer))
301
303
{
@@ -331,6 +333,9 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
331
333
}
332
334
}
333
335
336
+ if (isKernel)
337
+ continue ;
338
+
334
339
// Flag for function calls where alwaysinline must be true
335
340
bool mustAlwaysInline = false ;
336
341
You can’t perform that action at this time.
0 commit comments