We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65a269 commit f79824bCopy full SHA for f79824b
IGC/AdaptorCommon/ProcessFuncAttributes.cpp
@@ -411,6 +411,11 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
411
{
412
mustAlwaysInline = true;
413
}
414
+ // Enable inlining for -O0 in order to preserve debug info. This may be removed when debug stack call support is enabled.
415
+ else if (getAnalysis<MetaDataUtilsWrapper>().getModuleMetaData()->compOpt.OptDisable)
416
+ {
417
+ mustAlwaysInline = true;
418
+ }
419
if (mustAlwaysInline)
420
421
F->removeFnAttr(llvm::Attribute::NoInline);
0 commit comments