llvm.org GIT mirror llvm / 60493c3
Eliminate PromoteMemoryToRegisterID; just use addPreserved("mem2reg") instead, as an example of what this looks like. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110478 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
5 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
148148 // ret i32 %Y
149149 //
150150 FunctionPass *createPromoteMemoryToRegisterPass();
151 extern char &PromoteMemoryToRegisterID;
152151
153152 //===----------------------------------------------------------------------===//
154153 //
8484
8585 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
8686 // This is a cluster of orthogonal Transforms
87 AU.addPreservedID(PromoteMemoryToRegisterID);
87 AU.addPreserved("mem2reg");
8888 AU.addPreservedID(LowerSwitchID);
8989 }
9090
4040 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
4141 // This is a cluster of orthogonal Transforms
4242 AU.addPreserved();
43 AU.addPreservedID(PromoteMemoryToRegisterID);
43 AU.addPreserved("mem2reg");
4444 AU.addPreservedID(LowerInvokePassID);
4545 }
4646
8080 return Changed;
8181 }
8282
83 // Publically exposed interface to pass...
84 char &llvm::PromoteMemoryToRegisterID = PromotePass::ID;
8583 // createPromoteMemoryToRegister - Provide an entry point to create this pass.
8684 //
8785 FunctionPass *llvm::createPromoteMemoryToRegisterPass() {
3434 // We preserve the non-critical-edgeness property
3535 AU.addPreservedID(BreakCriticalEdgesID);
3636 // This is a cluster of orthogonal Transforms
37 AU.addPreservedID(PromoteMemoryToRegisterID);
37 AU.addPreserved("mem2reg");
3838 AU.addPreservedID(LowerSwitchID);
3939 }
4040