summaryrefslogtreecommitdiffstats
path: root/polly/lib
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
-rw-r--r--polly/lib/Analysis/ScopGraphPrinter.cpp5
-rw-r--r--polly/lib/Analysis/TempScopInfo.cpp1
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp2
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp1
-rw-r--r--polly/lib/CodeGen/PTXGenerator.cpp1
-rw-r--r--polly/lib/Exchange/OpenScopExporter.cpp4
-rw-r--r--polly/lib/Exchange/OpenScopImporter.cpp1
-rw-r--r--polly/lib/Exchange/ScopLib.cpp3
-rw-r--r--polly/lib/Transform/DeadCodeElimination.cpp1
-rw-r--r--polly/lib/Transform/IndVarSimplify.cpp2
-rw-r--r--polly/lib/Transform/Pluto.cpp1
-rw-r--r--polly/lib/Transform/ScheduleOptimizer.cpp1
13 files changed, 0 insertions, 25 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 620793dc11b..912b395e607 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -198,7 +198,6 @@ public:
int DiagnosticScopFound::PluginDiagnosticKind = 10;
void DiagnosticScopFound::print(DiagnosticPrinter &DP) const {
-
DP << "Polly detected an optimizable loop region (scop) in function '" << F
<< "'\n";
@@ -617,7 +616,6 @@ static unsigned eraseAllChildren(std::set<const Region *> &Regs,
}
void ScopDetection::findScops(Region &R) {
-
if (!DetectRegionsWithoutLoops && regionWithoutLoops(R, LI))
return;
diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp
index ee15b2cfeac..8034d22b195 100644
--- a/polly/lib/Analysis/ScopGraphPrinter.cpp
+++ b/polly/lib/Analysis/ScopGraphPrinter.cpp
@@ -26,7 +26,6 @@ using namespace llvm;
namespace llvm {
template <>
struct GraphTraits<ScopDetection *> : public GraphTraits<RegionInfo *> {
-
static NodeType *getEntryNode(ScopDetection *SD) {
return GraphTraits<RegionInfo *>::getEntryNode(SD->getRI());
}
@@ -39,11 +38,9 @@ struct GraphTraits<ScopDetection *> : public GraphTraits<RegionInfo *> {
};
template <> struct DOTGraphTraits<RegionNode *> : public DefaultDOTGraphTraits {
-
DOTGraphTraits(bool isSimple = false) : DefaultDOTGraphTraits(isSimple) {}
std::string getNodeLabel(RegionNode *Node, RegionNode *Graph) {
-
if (!Node->isSubRegion()) {
BasicBlock *BB = Node->getNodeAs<BasicBlock>();
@@ -68,7 +65,6 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> {
std::string getEdgeAttributes(RegionNode *srcNode,
GraphTraits<RegionInfo *>::ChildIteratorType CI,
ScopDetection *SD) {
-
RegionNode *destNode = *CI;
if (srcNode->isSubRegion() || destNode->isSubRegion())
@@ -103,7 +99,6 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> {
for (std::string::iterator SI = String.begin(), SE = String.end(); SI != SE;
++SI) {
-
if (*SI == '"')
Escaped += '\\';
diff --git a/polly/lib/Analysis/TempScopInfo.cpp b/polly/lib/Analysis/TempScopInfo.cpp
index 897ed261800..7eff1260ecb 100644
--- a/polly/lib/Analysis/TempScopInfo.cpp
+++ b/polly/lib/Analysis/TempScopInfo.cpp
@@ -77,7 +77,6 @@ void TempScop::print(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI) const {
void TempScop::printDetail(raw_ostream &OS, ScalarEvolution *SE, LoopInfo *LI,
const Region *CurR, unsigned ind) const {
-
// FIXME: Print other details rather than memory accesses.
for (const auto &CurBlock : CurR->blocks()) {
AccFuncMapType::const_iterator AccSetIt = AccFuncMap.find(CurBlock);
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index 0a9c1736abf..c2c4faa267f 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -220,7 +220,6 @@ Value *BlockGenerator::getNewValue(const Value *Old, ValueMapT &BBMap,
void BlockGenerator::copyInstScalar(const Instruction *Inst, ValueMapT &BBMap,
ValueMapT &GlobalMap, LoopToScevMapT &LTS) {
-
// We do not generate debug intrinsics as we did not investigate how to
// copy them correctly. At the current state, they just crash the code
// generation as the meta-data operands are not correctly copied.
@@ -257,7 +256,6 @@ void BlockGenerator::copyInstScalar(const Instruction *Inst, ValueMapT &BBMap,
std::vector<Value *> BlockGenerator::getMemoryAccessIndex(
__isl_keep isl_map *AccessRelation, Value *BaseAddress, ValueMapT &BBMap,
ValueMapT &GlobalMap, LoopToScevMapT &LTS, Loop *L) {
-
assert((isl_map_dim(AccessRelation, isl_dim_out) == 1) &&
"Only single dimensional access functions supported");
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index b82819ec2ed..df2f9cc4fa3 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -50,7 +50,6 @@ Value *polly::createLoop(Value *LB, Value *UB, Value *Stride,
PollyIRBuilder &Builder, Pass *P, BasicBlock *&ExitBB,
ICmpInst::Predicate Predicate,
LoopAnnotator *Annotator, bool Parallel) {
-
DominatorTree &DT = P->getAnalysis<DominatorTreeWrapperPass>().getDomTree();
LoopInfo &LI = P->getAnalysis<LoopInfo>();
Function *F = Builder.GetInsertBlock()->getParent();
diff --git a/polly/lib/CodeGen/PTXGenerator.cpp b/polly/lib/CodeGen/PTXGenerator.cpp
index fb48f1289a2..7f0421ec7c7 100644
--- a/polly/lib/CodeGen/PTXGenerator.cpp
+++ b/polly/lib/CodeGen/PTXGenerator.cpp
@@ -37,7 +37,6 @@ PTXGenerator::PTXGenerator(PollyIRBuilder &Builder, Pass *P,
const std::string &Triple)
: Builder(Builder), P(P), GPUTriple(Triple), GridWidth(1), GridHeight(1),
BlockWidth(1), BlockHeight(1), OutputBytes(0) {
-
InitializeGPUDataTypes();
}
diff --git a/polly/lib/Exchange/OpenScopExporter.cpp b/polly/lib/Exchange/OpenScopExporter.cpp
index d3d7d7817f7..2c12d96f81f 100644
--- a/polly/lib/Exchange/OpenScopExporter.cpp
+++ b/polly/lib/Exchange/OpenScopExporter.cpp
@@ -181,7 +181,6 @@ void OpenScop::initializeStatements() {
}
void OpenScop::freeStatement(openscop_statement_p stmt) {
-
if (stmt->read)
openscop_matrix_free(stmt->read);
stmt->read = NULL;
@@ -279,7 +278,6 @@ int OpenScop::domainToMatrix_basic_set(isl_basic_set *bset, void *user) {
/// @param PS The set to be translated
/// @return A OpenScop Matrix
openscop_matrix_p OpenScop::domainToMatrix(isl_set *PS) {
-
// Create a canonical copy of this set.
isl_set *set = isl_set_copy(PS);
set = isl_set_compute_divs(set);
@@ -373,7 +371,6 @@ int OpenScop::scatteringToMatrix_basic_map(isl_basic_map *bmap, void *user) {
/// @param map The map to be translated
/// @return A OpenScop Matrix
openscop_matrix_p OpenScop::scatteringToMatrix(isl_map *pmap) {
-
// Create a canonical copy of this set.
isl_map *map = isl_map_copy(pmap);
map = isl_map_compute_divs(map);
@@ -472,7 +469,6 @@ int OpenScop::accessToMatrix_basic_map(isl_basic_map *bmap, void *user) {
///
/// @return The memory access matrix, as it is required by openscop.
openscop_matrix_p OpenScop::createAccessMatrix(ScopStmt *S, bool isRead) {
-
unsigned NbColumns = S->getNumIterators() + S->getNumParams() + 2;
openscop_matrix_p m = openscop_matrix_malloc(0, NbColumns);
diff --git a/polly/lib/Exchange/OpenScopImporter.cpp b/polly/lib/Exchange/OpenScopImporter.cpp
index 58c2dac92a7..f864c37db3e 100644
--- a/polly/lib/Exchange/OpenScopImporter.cpp
+++ b/polly/lib/Exchange/OpenScopImporter.cpp
@@ -118,7 +118,6 @@ isl_map *mapFromMatrix(openscop_matrix_p m, isl_space *Space) {
///
/// @return An isl_map describing the scattering.
isl_map *scatteringForStmt(openscop_matrix_p m, ScopStmt *PollyStmt) {
-
unsigned NbParam = PollyStmt->getNumParams();
unsigned NbIterators = PollyStmt->getNumIterators();
unsigned NbScattering = m->NbColumns - 2 - NbParam - NbIterators;
diff --git a/polly/lib/Exchange/ScopLib.cpp b/polly/lib/Exchange/ScopLib.cpp
index afd3cdfd465..d89a59d7eb3 100644
--- a/polly/lib/Exchange/ScopLib.cpp
+++ b/polly/lib/Exchange/ScopLib.cpp
@@ -127,7 +127,6 @@ void ScopLib::initializeStatements() {
}
void ScopLib::freeStatement(scoplib_statement_p stmt) {
-
if (stmt->read)
scoplib_matrix_free(stmt->read);
stmt->read = NULL;
@@ -445,7 +444,6 @@ int ScopLib::accessToMatrix_basic_map(isl_basic_map *bmap, void *user) {
///
/// @return The memory access matrix, as it is required by scoplib.
scoplib_matrix_p ScopLib::createAccessMatrix(ScopStmt *S, bool isRead) {
-
unsigned NbColumns = S->getNumIterators() + S->getNumParams() + 2;
scoplib_matrix_p m = scoplib_matrix_malloc(0, NbColumns);
@@ -644,7 +642,6 @@ isl_map *mapFromMatrix(scoplib_matrix_p m, __isl_take isl_space *Space) {
/// @return An isl_map describing the scattering.
isl_map *scatteringForStmt(scoplib_matrix_p m, ScopStmt *PollyStmt,
int scatteringDims) {
-
unsigned NbParam = PollyStmt->getNumParams();
unsigned NbIterators = PollyStmt->getNumIterators();
unsigned NbScattering;
diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp
index 41cdf4ff76f..14c6044d34c 100644
--- a/polly/lib/Transform/DeadCodeElimination.cpp
+++ b/polly/lib/Transform/DeadCodeElimination.cpp
@@ -53,7 +53,6 @@ cl::opt<int> DCEPreciseSteps(
cl::ZeroOrMore, cl::init(-1));
class DeadCodeElim : public ScopPass {
-
public:
static char ID;
explicit DeadCodeElim() : ScopPass(ID) {}
diff --git a/polly/lib/Transform/IndVarSimplify.cpp b/polly/lib/Transform/IndVarSimplify.cpp
index e0e52f37818..ebf35fb634b 100644
--- a/polly/lib/Transform/IndVarSimplify.cpp
+++ b/polly/lib/Transform/IndVarSimplify.cpp
@@ -992,7 +992,6 @@ const SCEVAddRecExpr *WidenIV::GetWideRecurrence(Instruction *NarrowUse) {
/// WidenIVUse - Determine whether an individual user of the narrow IV can be
/// widened. If so, return the wide clone of the user.
Instruction *WidenIV::WidenIVUse(NarrowIVDefUse DU, SCEVExpander &Rewriter) {
-
// Stop traversing the def-use chain at inner-loop phis or post-loop phis.
if (isa<PHINode>(DU.NarrowUse) &&
LI->getLoopFor(DU.NarrowUse->getParent()) != L)
@@ -1537,7 +1536,6 @@ static Value *genLoopLimit(PHINode *IndVar, const SCEV *IVCount, Loop *L,
// GEP. Avoid running SCEVExpander on a new pointer value, instead reusing
// the existing GEPs whenever possible.
if (IndVar->getType()->isPointerTy() && !IVCount->getType()->isPointerTy()) {
-
Type *OfsTy = SE->getEffectiveSCEVType(IVInit->getType());
const SCEV *IVOffset = SE->getTruncateOrSignExtend(IVCount, OfsTy);
diff --git a/polly/lib/Transform/Pluto.cpp b/polly/lib/Transform/Pluto.cpp
index 8bf713718ed..1e026f0e0a4 100644
--- a/polly/lib/Transform/Pluto.cpp
+++ b/polly/lib/Transform/Pluto.cpp
@@ -126,7 +126,6 @@ static std::string convertInt(int number) {
}
class PlutoOptimizer : public ScopPass {
-
public:
static char ID;
explicit PlutoOptimizer() : ScopPass(ID) {}
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 97555a01824..a91304c04c8 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -81,7 +81,6 @@ MaximizeBandDepth("polly-opt-maximize-bands",
namespace {
class IslScheduleOptimizer : public ScopPass {
-
public:
static char ID;
explicit IslScheduleOptimizer() : ScopPass(ID) { LastSchedule = NULL; }
OpenPOWER on IntegriCloud