expose LICM pass
authorChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 22:44:37 +0000 (22:44 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 22:44:37 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2614 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/opt.cpp

index 6de7529ec4f01a5cd53f1d360d25f1cd0373c523..3eedc7c1b6b10320895f3bb2f7c455d3892c6d65 100644 (file)
@@ -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"),