mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +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>
|
cl::opt<bool>
|
||||||
Verify("verify", cl::desc("Verify each pass result"));
|
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, createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||||
addPass(PM, createGlobalDCEPass()); // Remove unused globals
|
addPass(PM, createGlobalDCEPass()); // Remove unused globals
|
||||||
addPass(PM, createPruneEHPass()); // Remove dead EH info
|
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, createInstructionCombiningPass()); // Cleanup code for raise
|
||||||
addPass(PM, createRaisePointerReferencesPass());// Recover type information
|
addPass(PM, createRaisePointerReferencesPass());// Recover type information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user