From 627f280adfd69bbf8e859de69b6807ae0c9effce Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 18 Sep 2009 22:03:29 +0000 Subject: 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 --- include/llvm/Support/StandardPasses.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/llvm/Support') 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 -- cgit v1.1