aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
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
commit627f280adfd69bbf8e859de69b6807ae0c9effce (patch)
tree1de34a60f1dc6683416d2163ca60abf30b9a4094 /include/llvm/Support
parentb215f0dab024efb9d46497a28404bcde2638e1a3 (diff)
downloadexternal_llvm-627f280adfd69bbf8e859de69b6807ae0c9effce.zip
external_llvm-627f280adfd69bbf8e859de69b6807ae0c9effce.tar.gz
external_llvm-627f280adfd69bbf8e859de69b6807ae0c9effce.tar.bz2
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/llvm/Support')
-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 e7eb913..8c4f90b 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