1. ThinLTO : Import always_inline functions irrespective of the threshold (details)
Commit b11391bb47d6fb75639c331378440b405e64be7a by tejohnson
ThinLTO : Import always_inline functions irrespective of the threshold
Summary: A user can force a function to be inlined by specifying the
always_inline attribute. Currently, thinlto implementation is not aware
of always_inline functions and does not guarantee import of such
functions, which in turn can prevent inlining of such functions.
Patch by Bharathi Seshadri <>
Reviewers: tejohnson
Reviewed By: tejohnson
Subscribers: mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith,
arphaman, llvm-commits
Tags: #llvm
Differential Revision:
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp (diff)
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp (diff)
The file was modifiedllvm/lib/AsmParser/LLParser.cpp (diff)
The file was modifiedllvm/include/llvm/IR/ModuleSummaryIndex.h (diff)
The file was modifiedllvm/lib/IR/AsmWriter.cpp (diff)
The file was addedllvm/test/ThinLTO/X86/funcimport_alwaysinline.ll
The file was modifiedllvm/lib/Transforms/IPO/FunctionImport.cpp (diff)
The file was modifiedllvm/lib/IR/ModuleSummaryIndex.cpp (diff)
The file was modifiedllvm/test/ThinLTO/X86/dot-dumper2.ll (diff)
The file was modifiedllvm/test/ThinLTO/X86/dot-dumper.ll (diff)
The file was modifiedllvm/lib/Analysis/ModuleSummaryAnalysis.cpp (diff)
The file was modifiedllvm/test/Assembler/thinlto-summary.ll (diff)
The file was addedllvm/test/ThinLTO/X86/Inputs/funcimport_alwaysinline.ll
The file was modifiedllvm/lib/AsmParser/LLLexer.cpp (diff)
The file was modifiedllvm/lib/AsmParser/LLToken.h (diff)