1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Rename createPromoteMemoryToRegister() to

createPromoteMemoryToRegisterPass() to be consistent with other pass
creation functions.

llvm-svn: 20885
This commit is contained in:
Alkis Evlogimenos 2005-03-28 02:01:12 +00:00
parent 691b1987e1
commit e0e628a401
4 changed files with 4 additions and 5 deletions

View File

@ -160,7 +160,7 @@ FunctionPass *createLoopUnrollPass();
// %Y = load int* %X // %Y = load int* %X
// ret int %Y // ret int %Y
// //
FunctionPass *createPromoteMemoryToRegister(); FunctionPass *createPromoteMemoryToRegisterPass();
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//

View File

@ -76,7 +76,6 @@ bool PromotePass::runOnFunction(Function &F) {
// 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();
} }

View File

@ -331,7 +331,7 @@ StackerCompiler::compile(
// Merge & remove BBs // Merge & remove BBs
Passes.add(createCFGSimplificationPass()); Passes.add(createCFGSimplificationPass());
// Memory To Register // Memory To Register
Passes.add(createPromoteMemoryToRegister()); Passes.add(createPromoteMemoryToRegisterPass());
// Compile silly sequences // Compile silly sequences
Passes.add(createInstructionCombiningPass()); Passes.add(createInstructionCombiningPass());
// Make sure everything is still good. // Make sure everything is still good.

View File

@ -83,7 +83,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code 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, createGlobalOptimizerPass()); // Optimize out global vars
addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation