createPromoteMemoryToRegisterPass() to be consistent with other pass
creation functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20885
91177308-0d34-0410-b5e6-
96231b3b80d8
// %Y = load int* %X
// ret int %Y
//
// %Y = load int* %X
// ret int %Y
//
-FunctionPass *createPromoteMemoryToRegister();
+FunctionPass *createPromoteMemoryToRegisterPass();
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// createPromoteMemoryToRegister - Provide an entry point to create this pass.
//
// createPromoteMemoryToRegister - Provide an entry point to create this pass.
//
-FunctionPass *llvm::createPromoteMemoryToRegister() {
+FunctionPass *llvm::createPromoteMemoryToRegisterPass() {
return new PromotePass();
}
return new PromotePass();
}
// Merge & remove BBs
Passes.add(createCFGSimplificationPass());
// Memory To Register
// Merge & remove BBs
Passes.add(createCFGSimplificationPass());
// Memory To Register
- Passes.add(createPromoteMemoryToRegister());
+ Passes.add(createPromoteMemoryToRegisterPass());
// Compile silly sequences
Passes.add(createInstructionCombiningPass());
// Make sure everything is still good.
// Compile silly sequences
Passes.add(createInstructionCombiningPass());
// Make sure everything is still good.
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code
- addPass(PM, createPromoteMemoryToRegister()); // Kill useless allocas
+ addPass(PM, createPromoteMemoryToRegisterPass());// Kill useless allocas
addPass(PM, createGlobalOptimizerPass()); // Optimize out global vars
addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation
addPass(PM, createGlobalOptimizerPass()); // Optimize out global vars
addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation