summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-10 18:18:53 +0000
committerChris Lattner <sabre@nondot.org>2003-10-10 18:18:53 +0000
commite01ba00b872bd5080d87e3b3372389d0ddf2ea50 (patch)
tree9a69be0b89fc33f76508e563786be2797dc1a321 /llvm/tools/gccas
parent8b2bd4ed47e819e042a49d21abbd8f6bcd143f79 (diff)
downloadbcm5719-llvm-e01ba00b872bd5080d87e3b3372389d0ddf2ea50.tar.gz
bcm5719-llvm-e01ba00b872bd5080d87e3b3372389d0ddf2ea50.zip
Add a new -disable-inlining option
llvm-svn: 9028
Diffstat (limited to 'llvm/tools/gccas')
-rw-r--r--llvm/tools/gccas/gccas.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index 0a50d9fbb54..2cd408ab932 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -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
OpenPOWER on IntegriCloud