diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-14 22:36:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-14 22:36:15 +0000 |
commit | 2b72c360bb644ac5f3ffbc2063cbfd167a464d2a (patch) | |
tree | 72309436d53d04e91a8d2e206e62d7657b65c6b2 /tools/opt/opt.cpp | |
parent | 9b534266f030f22a0a5fc00ad5cc19a53aa31c88 (diff) | |
download | external_llvm-2b72c360bb644ac5f3ffbc2063cbfd167a464d2a.zip external_llvm-2b72c360bb644ac5f3ffbc2063cbfd167a464d2a.tar.gz external_llvm-2b72c360bb644ac5f3ffbc2063cbfd167a464d2a.tar.bz2 |
Expose dead instruction elimination pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 69a0774..a7ad98e 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -35,7 +35,7 @@ // Opts enum - All of the transformations we can do... enum Opts { // Basic optimizations - dce, constprop, inlining, constmerge, strip, mstrip, mergereturn, + dce, die, constprop, inlining, constmerge, strip, mstrip, mergereturn, // Miscellaneous Transformations raiseallocs, cleangcc, @@ -64,6 +64,7 @@ struct { Pass * (*PassCtor)(); } OptTable[] = { { dce , createDeadCodeEliminationPass }, + { die , createDeadInstEliminationPass }, { constprop , createConstantPropogationPass }, { inlining , createMethodInliningPass }, { constmerge , createConstantMergePass }, @@ -102,6 +103,7 @@ cl::Flag Quiet ("q", "Don't print modifying pass names", 0, false); cl::Alias QuietA ("quiet", "Alias for -q", cl::NoFlags, Quiet); cl::EnumList<enum Opts> OptimizationList(cl::NoFlags, clEnumVal(dce , "Dead Code Elimination"), + clEnumVal(die , "Dead Instruction Elimination"), clEnumVal(constprop , "Simple constant propogation"), clEnumValN(inlining , "inline", "Method integration"), clEnumVal(constmerge , "Merge identical global constants"), |