[polly] r248694 - [NFC] Remove unused SCoP diagnostic
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 18:29:45 PDT 2015
Author: jdoerfert
Date: Sun Sep 27 20:29:44 2015
New Revision: 248694
URL: http://llvm.org/viewvc/llvm-project?rev=248694&view=rev
Log:
[NFC] Remove unused SCoP diagnostic
Modified:
polly/trunk/include/polly/ScopDetectionDiagnostic.h
polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
Modified: polly/trunk/include/polly/ScopDetectionDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetectionDiagnostic.h?rev=248694&r1=248693&r2=248694&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetectionDiagnostic.h (original)
+++ polly/trunk/include/polly/ScopDetectionDiagnostic.h Sun Sep 27 20:29:44 2015
@@ -80,11 +80,6 @@ enum RejectReasonKind {
rrkDifferentElementSize,
rrkLastAffFunc,
- // IndVar
- rrkIndVar,
- rrkPhiNodeRefInRegion,
- rrkLastIndVar,
-
rrkIndEdge,
rrkLoopBound,
@@ -100,7 +95,6 @@ enum RejectReasonKind {
rrkIntToPtr,
rrkAlloca,
rrkUnknownInst,
- rrkPHIinExit,
rrkEntry,
rrkUnprofitable,
rrkLastOther
@@ -533,40 +527,6 @@ public:
};
//===----------------------------------------------------------------------===//
-/// @brief Base class for reject reasons related to induction variables.
-///
-// ReportIndVar reject reasons are generated when the ScopDetection finds
-/// errors in the induction variable(s) of the Scop candidate.
-class ReportIndVar : public RejectReason {
- //===--------------------------------------------------------------------===//
-public:
- ReportIndVar(const RejectReasonKind K);
-};
-
-//===----------------------------------------------------------------------===//
-/// @brief Captures a phi node that refers to SSA names in the current region.
-class ReportPhiNodeRefInRegion : public ReportIndVar {
- //===--------------------------------------------------------------------===//
-
- // The offending instruction.
- Instruction *Inst;
-
-public:
- ReportPhiNodeRefInRegion(Instruction *Inst);
-
- /// @name LLVM-RTTI interface
- //@{
- static bool classof(const RejectReason *RR);
- //@}
-
- /// @name RejectReason interface
- //@{
- virtual std::string getMessage() const override;
- virtual const DebugLoc &getDebugLoc() const override;
- //@}
-};
-
-//===----------------------------------------------------------------------===//
/// @brief Captures a region with invalid entering edges.
class ReportIndEdge : public RejectReason {
//===--------------------------------------------------------------------===//
@@ -773,27 +733,6 @@ public:
/// @name LLVM-RTTI interface
//@{
- static bool classof(const RejectReason *RR);
- //@}
-
- /// @name RejectReason interface
- //@{
- virtual std::string getMessage() const override;
- virtual const DebugLoc &getDebugLoc() const override;
- //@}
-};
-
-//===----------------------------------------------------------------------===//
-/// @brief Captures errors with phi nodes in exit BBs.
-class ReportPHIinExit : public ReportOther {
- //===--------------------------------------------------------------------===//
- Instruction *Inst;
-
-public:
- ReportPHIinExit(Instruction *Inst);
-
- /// @name LLVM-RTTI interface
- //@{
static bool classof(const RejectReason *RR);
//@}
Modified: polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp?rev=248694&r1=248693&r2=248694&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp Sun Sep 27 20:29:44 2015
@@ -40,7 +40,6 @@
STATISTIC(Bad##NAME##ForScop, "Number of bad regions for Scop: " DESC)
BADSCOP_STAT(CFG, "CFG too complex");
-BADSCOP_STAT(IndVar, "Non canonical induction variable in loop");
BADSCOP_STAT(IndEdge, "Found invalid region entering edges");
BADSCOP_STAT(LoopBound, "Loop bounds can not be computed");
BADSCOP_STAT(FuncCall, "Function call with side effects appeared");
@@ -302,31 +301,6 @@ std::string ReportNonAffineAccess::getEn
}
//===----------------------------------------------------------------------===//
-// ReportIndVar.
-
-ReportIndVar::ReportIndVar(const RejectReasonKind K) : RejectReason(K) {
- ++BadIndVarForScop;
-}
-
-//===----------------------------------------------------------------------===//
-// ReportPhiNodeRefInRegion.
-
-ReportPhiNodeRefInRegion::ReportPhiNodeRefInRegion(Instruction *Inst)
- : ReportIndVar(rrkPhiNodeRefInRegion), Inst(Inst) {}
-
-std::string ReportPhiNodeRefInRegion::getMessage() const {
- return "SCEV of PHI node refers to SSA names in region: " + *Inst;
-}
-
-const DebugLoc &ReportPhiNodeRefInRegion::getDebugLoc() const {
- return Inst->getDebugLoc();
-}
-
-bool ReportPhiNodeRefInRegion::classof(const RejectReason *RR) {
- return RR->getKind() == rrkPhiNodeRefInRegion;
-}
-
-//===----------------------------------------------------------------------===//
// ReportIndEdge.
ReportIndEdge::ReportIndEdge(BasicBlock *BB)
@@ -535,24 +509,6 @@ bool ReportUnknownInst::classof(const Re
}
//===----------------------------------------------------------------------===//
-// ReportPHIinExit.
-
-ReportPHIinExit::ReportPHIinExit(Instruction *Inst)
- : ReportOther(rrkPHIinExit), Inst(Inst) {}
-
-std::string ReportPHIinExit::getMessage() const {
- return "PHI node in exit BB";
-}
-
-const DebugLoc &ReportPHIinExit::getDebugLoc() const {
- return Inst->getDebugLoc();
-}
-
-bool ReportPHIinExit::classof(const RejectReason *RR) {
- return RR->getKind() == rrkPHIinExit;
-}
-
-//===----------------------------------------------------------------------===//
// ReportEntry.
ReportEntry::ReportEntry(BasicBlock *BB) : ReportOther(rrkEntry), BB(BB) {}
More information about the llvm-commits
mailing list