[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 10 13:20:02 PDT 2003
Changes in directory llvm/tools/gccas:
gccas.cpp updated: 1.76 -> 1.77
---
Log message:
Add a new -disable-inlining option
---
Diffs of the changes: (+6 -1)
Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.76 llvm/tools/gccas/gccas.cpp:1.77
--- llvm/tools/gccas/gccas.cpp:1.76 Fri Oct 10 12:55:17 2003
+++ llvm/tools/gccas/gccas.cpp Fri Oct 10 13:18:53 2003
@@ -31,6 +31,9 @@
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 @@
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
More information about the llvm-commits
mailing list