[llvm] r237702 - Remove the InstructionSimplifierPass immediately after InstructionCombiningPass.

Wei Mi wmi at google.com
Tue May 19 09:09:11 PDT 2015


Author: wmi
Date: Tue May 19 11:09:11 2015
New Revision: 237702

URL: http://llvm.org/viewvc/llvm-project?rev=237702&view=rev
Log:
Remove the InstructionSimplifierPass immediately after InstructionCombiningPass.

InstructionCombiningPass was added after LoopUnrollPass in r237395. Because
InstructionCombiningPass is strictly more powerful than InstructionSimplifierPass,
remove the unnecessary InstructionSimplifierPass.

Differential Revision: http://reviews.llvm.org/D9838

Modified:
    llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=237702&r1=237701&r2=237702&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Tue May 19 11:09:11 2015
@@ -385,10 +385,6 @@ void PassManagerBuilder::populateModuleP
     // LoopUnroll may generate some redundency to cleanup.
     MPM.add(createInstructionCombiningPass());
 
-    // This is a barrier pass to avoid combine LICM pass and loop unroll pass
-    // within same loop pass manager.
-    MPM.add(createInstructionSimplifierPass());
-
     // Runtime unrolling will introduce runtime check in loop prologue. If the
     // unrolled loop is a inner loop, then the prologue will be inside the
     // outer loop. LICM pass can help to promote the runtime check out if the





More information about the llvm-commits mailing list