[llvm-commits] [vmkit] r51859 - /vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Jun 1 15:45:16 PDT 2008
Author: geoffray
Date: Sun Jun 1 17:45:16 2008
New Revision: 51859
URL: http://llvm.org/viewvc/llvm-project?rev=51859&view=rev
Log:
Do some GVN after custom lowering jnjvm calls.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp?rev=51859&r1=51858&r2=51859&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JnjvmModuleProvider.cpp Sun Jun 1 17:45:16 2008
@@ -184,18 +184,20 @@
addPass(PM, createReassociatePass()); // Reassociate expressions
//addPass(PM, createLoopRotatePass());
addPass(PM, createLICMPass()); // Hoist loop invariants
- /*
- addPass(PM, createLoopUnswitchPass()); // Unswitch loops.
- addPass(PM, createLoopIndexSplitPass()); // Index split loops.
- addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
- addPass(PM, createLoopDeletionPass()); // Delete dead loops
- addPass(PM, createLoopUnrollPass()); // Unroll small loops*/
+
+ //addPass(PM, createLoopUnswitchPass()); // Unswitch loops.
+ //addPass(PM, createLoopIndexSplitPass()); // Index split loops.
+ //addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
+ //addPass(PM, createLoopDeletionPass()); // Delete dead loops
+ //addPass(PM, createLoopUnrollPass()); // Unroll small loops*/
addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
addPass(PM, createGVNPass()); // Remove redundancies
addPass(PM, createMemCpyOptPass()); // Remove memcpy / form memset
addPass(PM, createSCCPPass()); // Constant prop with SCCP
addPass(PM, mvm::createLowerConstantCallsPass());
+
+ addPass(PM, createGVNPass()); // Remove redundancies
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
More information about the llvm-commits
mailing list