summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-18 22:03:29 +0000
committerChris Lattner <sabre@nondot.org>2009-09-18 22:03:29 +0000
commit4a86348bfb1dd06ac3ec204a8b295576873701e1 (patch)
tree1de34a60f1dc6683416d2163ca60abf30b9a4094 /include
parentd7a5983e482136af48c442cd77f42d614598f111 (diff)
downloadllvm-4a86348bfb1dd06ac3ec204a8b295576873701e1.tar.gz
llvm-4a86348bfb1dd06ac3ec204a8b295576873701e1.tar.bz2
llvm-4a86348bfb1dd06ac3ec204a8b295576873701e1.tar.xz
remove an extraneous mem2reg pass early in the pipe. Since
this is run after the 'standard function passes', SRoA was recently run. This saves a domfrontier construction. Thanks to Eli for noticing this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/StandardPasses.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h
index e7eb9138ea..8c4f90bf33 100644
--- a/include/llvm/Support/StandardPasses.h
+++ b/include/llvm/Support/StandardPasses.h
@@ -99,8 +99,6 @@ namespace llvm {
if (UnitAtATime)
PM->add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
PM->add(createCFGSimplificationPass()); // Clean up disgusting code
- // Kill useless allocas
- PM->add(createPromoteMemoryToRegisterPass());
if (UnitAtATime) {
PM->add(createGlobalOptimizerPass()); // Optimize out global vars
PM->add(createGlobalDCEPass()); // Remove unused fns and globs