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 1cf582f commit 76e5cfcCopy full SHA for 76e5cfc
src/dev/engine/internal/llvm/llvmcompilercontext.cpp
@@ -83,7 +83,7 @@ void LLVMCompilerContext::initJit()
83
// Run the O3 pipeline for specific functions
84
for (llvm::Function &func : m_module->functions()) {
85
if (!func.isDeclaration()) {
86
- if (!func.hasFnAttribute(llvm::Attribute::OptimizeNone)) {
+ if (func.hasExternalLinkage() && !func.hasFnAttribute(llvm::Attribute::OptimizeNone)) {
87
#ifndef NDEBUG
88
std::cout << "debug: optimizing function: " << functionNames.back() << std::endl;
89
#endif
0 commit comments