aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCameron Buschardt <buschard@uiuc.edu>2002-03-27 23:29:23 +0000
committerCameron Buschardt <buschard@uiuc.edu>2002-03-27 23:29:23 +0000
commit0732c70ffb55d663fa2d1f5406c5c25bcd27a8b0 (patch)
tree95d425e3f68a65d3dc8ad32e671ac43579c1ddf6 /tools
parentb1be061a76b47fe3f87596afb59674cc0c88a9b4 (diff)
downloadexternal_llvm-0732c70ffb55d663fa2d1f5406c5c25bcd27a8b0.zip
external_llvm-0732c70ffb55d663fa2d1f5406c5c25bcd27a8b0.tar.gz
external_llvm-0732c70ffb55d663fa2d1f5406c5c25bcd27a8b0.tar.bz2
Rename constructor function for mem2reg pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 3b5342d..235dadf 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -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) {