From bef00adb40276c6e3e8f162d6f6fc5ff7b4ecca5 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 llvm-svn: 94 --- llvm/tools/opt/opt.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 100a753df4ab..7bae1d8190d8 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/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) {