diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:06:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:06:35 +0000 |
| commit | b28b6801551d44108f6d7c08383a69e1a1010d2f (patch) | |
| tree | 73d5091db6a0b47b2d2cf62ca27eef26b5e666dc /llvm/lib/Transforms/Utils | |
| parent | 6788f25f997f95505f3bfac89af2649f3660164d (diff) | |
| download | bcm5719-llvm-b28b6801551d44108f6d7c08383a69e1a1010d2f.tar.gz bcm5719-llvm-b28b6801551d44108f6d7c08383a69e1a1010d2f.zip | |
*** empty log message ***
llvm-svn: 3016
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 8a81ac71317..378e9799a8c 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -47,8 +47,6 @@ namespace { map<BasicBlock*,vector<PHINode*> > NewPhiNodes; // the PhiNodes we're adding public: - const char *getPassName() const { return "Promote Memory to Register"; } - // runOnFunction - To run this pass, first we calculate the alloca // instructions that are safe for promotion, then we promote each one. // @@ -68,6 +66,7 @@ namespace { void FindSafeAllocas(Function &F); }; + RegisterPass<PromotePass> X("mem2reg", "Promote Memory to Register"); } // end of anonymous namespace diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index 9a65fcecf44..ef7d63e7cdb 100644 --- a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -17,6 +17,8 @@ using std::vector; AnalysisID UnifyFunctionExitNodes::ID(AnalysisID::create<UnifyFunctionExitNodes>()); +static RegisterPass<UnifyFunctionExitNodes> +X("mergereturn", "Unify function exit nodes"); // UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new // BasicBlock, and converting all returns to unconditional branches to this |

