No need to run -mem2reg twice
authorTobias Grosser <tobias@grosser.es>
Sat, 2 Aug 2014 13:37:25 +0000 (13:37 +0000)
committerTobias Grosser <tobias@grosser.es>
Sat, 2 Aug 2014 13:37:25 +0000 (13:37 +0000)
llvm-svn: 214632

polly/lib/Transform/Canonicalization.cpp

index d6ce12f..0dc7728 100644 (file)
@@ -23,7 +23,6 @@ using namespace polly;
 void polly::registerCanonicalicationPasses(llvm::PassManagerBase &PM,
                                            bool SCEVCodegen) {
   PM.add(llvm::createPromoteMemoryToRegisterPass());
-  PM.add(llvm::createPromoteMemoryToRegisterPass());
   PM.add(llvm::createInstructionCombiningPass());
   PM.add(llvm::createCFGSimplificationPass());
   PM.add(llvm::createTailCallEliminationPass());