From 6b0779699c56547954a97dcf196b4f682ecc5aed Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 30 Jun 2001 06:38:31 +0000 Subject: [PATCH] Include ADCE pass, rename include/Opt directory to llvm/Optimizations Optimizations now in opt namespace. Rename SCCP pass to DoSCCP llvm-svn: 118 --- tools/opt/opt.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 7bae1d8190d..f039a8a002e 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -25,7 +25,9 @@ #include "llvm/Bytecode/Reader.h" #include "llvm/Bytecode/Writer.h" #include "llvm/Tools/CommandLine.h" -#include "llvm/Opt/AllOpts.h" +#include "llvm/Optimizations/AllOpts.h" + +using namespace opt; struct { const string ArgName, Name; @@ -37,8 +39,9 @@ struct { { "-strip" , "Strip Symbols", DoSymbolStripping }, { "-mstrip" , "Strip Module Symbols", DoFullSymbolStripping }, { "-indvars" , "Simplify Induction Vars",DoInductionVariableCannonicalize }, - { "-sccp" , "Sparse Conditional Constant Prop", DoSCCP }, + { "-sccp" , "Sparse Conditional Constant Prop", DoSCCP }, { "-cpm" , "Constant Pool Merging", DoConstantPoolMerging }, + { "-adce" , "Agressive DCE", DoADCE }, }; int main(int argc, char **argv) {