mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Rename constructor function for mem2reg pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1be061a76
commit
0732c70ffb
@ -17,6 +17,7 @@
|
||||
#include "llvm/Transforms/Scalar/DCE.h"
|
||||
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
|
||||
#include "llvm/Transforms/Scalar/InstructionCombining.h"
|
||||
#include "llvm/Transforms/Scalar/PromoteMemoryToRegister.h"
|
||||
#include "llvm/Bytecode/WriteBytecodePass.h"
|
||||
#include "Support/CommandLine.h"
|
||||
#include <memory>
|
||||
@ -69,6 +70,7 @@ int main(int argc, char **argv) {
|
||||
PassManager Passes;
|
||||
Passes.add(createDeadInstEliminationPass()); // Remove Dead code/vars
|
||||
Passes.add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
|
||||
Passes.add(createPromoteMemoryToRegister()); // memory->register promotion
|
||||
Passes.add(createCleanupGCCOutputPass()); // Fix gccisms
|
||||
Passes.add(createIndVarSimplifyPass()); // Simplify indvars
|
||||
if (!StopAtLevelRaise) {
|
||||
|
Loading…
Reference in New Issue
Block a user