summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-10 22:44:37 +0000
committerChris Lattner <sabre@nondot.org>2002-05-10 22:44:37 +0000
commit6cb9743eb86daa5ab9e1209167134cc4ae9c9044 (patch)
tree27037b06df2176708bf32f11da9512a54b563416 /tools
parent88fcc513aa1cc480635aa948b18bc8bf8e6c47d0 (diff)
downloadexternal_llvm-6cb9743eb86daa5ab9e1209167134cc4ae9c9044.zip
external_llvm-6cb9743eb86daa5ab9e1209167134cc4ae9c9044.tar.gz
external_llvm-6cb9743eb86daa5ab9e1209167134cc4ae9c9044.tar.bz2
expose LICM pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/opt/opt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 6de7529..3eedc7c 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -38,7 +38,8 @@ static TargetData TD("opt target");
// Opts enum - All of the transformations we can do...
enum Opts {
// Basic optimizations
- dce, die, constprop, gcse, inlining, constmerge, strip, mstrip, mergereturn,
+ dce, die, constprop, gcse, licm, inlining, constmerge,
+ strip, mstrip, mergereturn,
// Miscellaneous Transformations
raiseallocs, lowerallocs, funcresolve, cleangcc, lowerrefs,
@@ -78,6 +79,7 @@ struct {
{ die , createDeadInstEliminationPass },
{ constprop , createConstantPropogationPass },
{ gcse , createGCSEPass },
+ { licm , createLICMPass },
{ inlining , createFunctionInliningPass },
{ constmerge , createConstantMergePass },
{ strip , createSymbolStrippingPass },
@@ -128,6 +130,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags,
clEnumVal(die , "Dead Instruction Elimination"),
clEnumVal(constprop , "Simple constant propogation"),
clEnumVal(gcse , "Global Common Subexpression Elimination"),
+ clEnumVal(licm , "Loop Invariant Code Motion"),
clEnumValN(inlining , "inline", "Function integration"),
clEnumVal(constmerge , "Merge identical global constants"),
clEnumVal(strip , "Strip symbols"),