From 241b064267c993c1e241caebf719d885773b938f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Jun 2001 23:37:58 +0000 Subject: [PATCH] Add command line arguments for Constant Pool Merging & Sparse Conditional Constant Prop git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/opt/opt.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 100a753df4a..7bae1d8190d 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -31,12 +31,14 @@ struct { const string ArgName, Name; bool (*OptPtr)(Module *C); } OptTable[] = { - { "-dce", "Dead Code Elimination", DoDeadCodeElimination }, - { "-constprop","Constant Propogation", DoConstantPropogation }, - { "-inline" ,"Method Inlining", DoMethodInlining }, - { "-strip" ,"Strip Symbols", DoSymbolStripping }, - { "-mstrip" ,"Strip Module Symbols", DoFullSymbolStripping }, - { "-indvars" ,"Simplify Induction Vars", DoInductionVariableCannonicalize }, + { "-dce" , "Dead Code Elimination", DoDeadCodeElimination }, + { "-constprop" , "Constant Propogation", DoConstantPropogation }, + { "-inline" , "Method Inlining", DoMethodInlining }, + { "-strip" , "Strip Symbols", DoSymbolStripping }, + { "-mstrip" , "Strip Module Symbols", DoFullSymbolStripping }, + { "-indvars" , "Simplify Induction Vars",DoInductionVariableCannonicalize }, + { "-sccp" , "Sparse Conditional Constant Prop", DoSCCP }, + { "-cpm" , "Constant Pool Merging", DoConstantPoolMerging }, }; int main(int argc, char **argv) {