mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 06:14:42 +00:00
Rename pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ecaccebf1
commit
93a00e4ceb
@ -41,10 +41,10 @@ ModulePass *createConstantMergePass();
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// createGlobalConstifierPass - This function returns a new pass that marks
|
||||
/// internal globals "constant" if they are provably never written to.
|
||||
/// createGlobalOptimizerPass - This function returns a new pass that optimizes
|
||||
/// non-address taken internal globals.
|
||||
///
|
||||
ModulePass *createGlobalConstifierPass();
|
||||
ModulePass *createGlobalOptimizerPass();
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -71,8 +71,8 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||
addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code
|
||||
addPass(PM, createPromoteMemoryToRegister()); // Kill useless allocas
|
||||
addPass(PM, createGlobalConstifierPass()); // Mark read-only globals const
|
||||
addPass(PM, createGlobalDCEPass()); // Remove unused globals
|
||||
addPass(PM, createGlobalOptimizerPass()); // Optimize out global vars
|
||||
addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs
|
||||
addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation
|
||||
addPass(PM, createDeadArgEliminationPass()); // Dead argument elimination
|
||||
addPass(PM, createInstructionCombiningPass()); // Clean up after IPCP & DAE
|
||||
|
@ -161,9 +161,8 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
|
||||
addPass(Passes, createInternalizePass());
|
||||
}
|
||||
|
||||
// Now that we internalized some globals, see if we can mark any globals as
|
||||
// being constant!
|
||||
addPass(Passes, createGlobalConstifierPass());
|
||||
// Now that we internalized some globals, see if we can hack on them!
|
||||
addPass(Passes, createGlobalOptimizerPass());
|
||||
|
||||
// Linking modules together can lead to duplicated global constants, only
|
||||
// keep one copy of each constant...
|
||||
|
@ -161,9 +161,8 @@ int llvm::GenerateBytecode(Module *M, bool Strip, bool Internalize,
|
||||
addPass(Passes, createInternalizePass());
|
||||
}
|
||||
|
||||
// Now that we internalized some globals, see if we can mark any globals as
|
||||
// being constant!
|
||||
addPass(Passes, createGlobalConstifierPass());
|
||||
// Now that we internalized some globals, see if we can hack on them!
|
||||
addPass(Passes, createGlobalOptimizerPass());
|
||||
|
||||
// Linking modules together can lead to duplicated global constants, only
|
||||
// keep one copy of each constant...
|
||||
|
Loading…
x
Reference in New Issue
Block a user