aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LICM.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 18:06:35 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 18:06:35 +0000
commitf629309f74cf1a64aa7fd1cd5784fd7db9a8f59e (patch)
treebaf1f59f5f0ba41f4bd1711c4155bbe328e6d041 /lib/Transforms/Scalar/LICM.cpp
parentaf41a12370010325eb163b734d5757a7f0296e67 (diff)
downloadexternal_llvm-f629309f74cf1a64aa7fd1cd5784fd7db9a8f59e.zip
external_llvm-f629309f74cf1a64aa7fd1cd5784fd7db9a8f59e.tar.gz
external_llvm-f629309f74cf1a64aa7fd1cd5784fd7db9a8f59e.tar.bz2
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r--lib/Transforms/Scalar/LICM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp
index 99ee45e..99450bb 100644
--- a/lib/Transforms/Scalar/LICM.cpp
+++ b/lib/Transforms/Scalar/LICM.cpp
@@ -34,8 +34,6 @@ static Statistic<> NumHoistedPH("licm\t\t- Number of insts hoisted to a loop "
namespace {
struct LICM : public FunctionPass, public InstVisitor<LICM> {
- const char *getPassName() const { return "Loop Invariant Code Motion"; }
-
virtual bool runOnFunction(Function &F);
// This transformation requires natural loop information...
@@ -104,6 +102,8 @@ namespace {
hoist(I);
}
};
+
+ RegisterPass<LICM> X("licm", "Loop Invariant Code Motion");
}
Pass *createLICMPass() { return new LICM(); }