Remove -polly-codegen-scev option and related code
SCEV based code generation has been the default for two weeks after having
been tested for a long time. We now drop the support the non-scev-based code
generation.
llvm-svn: 222978
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 23a5281..1b85804 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -17,7 +17,6 @@
//
//===----------------------------------------------------------------------===//
-#include "polly/CodeGen/BlockGenerators.h"
#include "polly/LinkAllPasses.h"
#include "polly/ScopInfo.h"
#include "polly/Options.h"
@@ -905,16 +904,10 @@
ScopStmt::ScopStmt(Scop &parent, TempScop &tempScop, const Region &CurRegion,
BasicBlock &bb, SmallVectorImpl<Loop *> &Nest,
SmallVectorImpl<unsigned> &Scatter)
- : Parent(parent), BB(&bb), IVS(Nest.size()), NestLoops(Nest.size()) {
+ : Parent(parent), BB(&bb), NestLoops(Nest.size()) {
// Setup the induction variables.
- for (unsigned i = 0, e = Nest.size(); i < e; ++i) {
- if (!SCEVCodegen) {
- PHINode *PN = Nest[i]->getCanonicalInductionVariable();
- assert(PN && "Non canonical IV in Scop!");
- IVS[i] = PN;
- }
+ for (unsigned i = 0, e = Nest.size(); i < e; ++i)
NestLoops[i] = Nest[i];
- }
BaseName = getIslCompatibleName("Stmt_", &bb, "");
@@ -1076,11 +1069,6 @@
const char *ScopStmt::getBaseName() const { return BaseName.c_str(); }
-const PHINode *
-ScopStmt::getInductionVariableForDimension(unsigned Dimension) const {
- return IVS[Dimension];
-}
-
const Loop *ScopStmt::getLoopForDimension(unsigned Dimension) const {
return NestLoops[Dimension];
}