[polly] r248118 - [NFC] Remove obsolete diagnostic for unstructured control flow
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 07:55:50 PDT 2015
Author: jdoerfert
Date: Sun Sep 20 09:55:50 2015
New Revision: 248118
URL: http://llvm.org/viewvc/llvm-project?rev=248118&view=rev
Log:
[NFC] Remove obsolete diagnostic for unstructured control flow
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=248118&r1=248117&r2=248118&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetectionDiagnostic.h (original)
+++ polly/trunk/include/polly/ScopDetectionDiagnostic.h Sun Sep 20 09:55:50 2015
@@ -259,29 +259,6 @@ public:
};
//===----------------------------------------------------------------------===//
-/// @brief Captures a not well-structured condition within the CFG.
-class ReportCondition : public ReportCFG {
- //===--------------------------------------------------------------------===//
-
- // The BasicBlock we found the broken condition in.
- BasicBlock *BB;
-
-public:
- ReportCondition(BasicBlock *BB) : ReportCFG(rrkCondition), BB(BB) {}
-
- /// @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 Base class for non-affine reject reasons.
///
/// Scop candidates that violate restrictions to affinity are reported under
Modified: polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp?rev=248118&r1=248117&r2=248118&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp Sun Sep 20 09:55:50 2015
@@ -158,21 +158,6 @@ bool ReportNonBranchTerminator::classof(
}
//===----------------------------------------------------------------------===//
-// ReportCondition.
-
-std::string ReportCondition::getMessage() const {
- return ("Not well structured condition at BB: " + BB->getName()).str();
-}
-
-const DebugLoc &ReportCondition::getDebugLoc() const {
- return BB->getTerminator()->getDebugLoc();
-}
-
-bool ReportCondition::classof(const RejectReason *RR) {
- return RR->getKind() == rrkCondition;
-}
-
-//===----------------------------------------------------------------------===//
// ReportAffFunc.
ReportAffFunc::ReportAffFunc(const RejectReasonKind K, const Instruction *Inst)
More information about the llvm-commits
mailing list