mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
Do not canonicalize indvars with scev based codegen
Scev code generation can now handle scops with non canonical induction variables. Hence there is no need to introduce canonical ones any more. llvm-svn: 177644
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "polly/ScopDetection.h"
|
||||
#include "polly/ScopInfo.h"
|
||||
#include "polly/TempScopInfo.h"
|
||||
#include "polly/CodeGen/BlockGenerators.h"
|
||||
#include "polly/CodeGen/CodeGeneration.h"
|
||||
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
@@ -202,7 +203,9 @@ static void registerPollyPreoptPasses(llvm::PassManagerBase &PM) {
|
||||
PM.add(llvm::createReassociatePass()); // Reassociate expressions
|
||||
PM.add(llvm::createLoopRotatePass()); // Rotate Loop
|
||||
PM.add(llvm::createInstructionCombiningPass());
|
||||
PM.add(polly::createIndVarSimplifyPass()); // Canonicalize indvars
|
||||
|
||||
if (!SCEVCodegen)
|
||||
PM.add(polly::createIndVarSimplifyPass());
|
||||
|
||||
PM.add(polly::createCodePreparationPass());
|
||||
PM.add(polly::createRegionSimplifyPass());
|
||||
|
||||
Reference in New Issue
Block a user