mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-27 00:15:58 +00:00
Add a new -disable-inlining option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf00c4ab3b
commit
0cea3ec964
@ -31,6 +31,9 @@ namespace {
|
||||
|
||||
cl::opt<bool>
|
||||
Verify("verify", cl::desc("Verify each pass result"));
|
||||
|
||||
cl::opt<bool>
|
||||
DisableInline("disable-inlining", cl::desc("Do not run the inliner pass"));
|
||||
}
|
||||
|
||||
|
||||
@ -50,7 +53,9 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||
addPass(PM, createGlobalDCEPass()); // Remove unused globals
|
||||
addPass(PM, createPruneEHPass()); // Remove dead EH info
|
||||
addPass(PM, createFunctionInliningPass()); // Inline small functions
|
||||
|
||||
if (!DisableInline)
|
||||
addPass(PM, createFunctionInliningPass()); // Inline small functions
|
||||
|
||||
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
|
||||
addPass(PM, createRaisePointerReferencesPass());// Recover type information
|
||||
|
Loading…
x
Reference in New Issue
Block a user