*** empty log message ***

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-07-23 18:06:35 +00:00
parent af41a12370
commit f629309f74
20 changed files with 48 additions and 55 deletions

View File

@@ -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

View File

@@ -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