From 8006043b13d5e424f5e457b098ee363fe345a6b6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 4 Dec 2020 21:26:12 -0800 Subject: [PATCH] [IRCE] Remove unused IsSigned and its accessor (NFC) IsSigned and its accessor, isSigned, were introduced on Oct 25, 2017 in commit 9ac7021a2563d433549a21990f96184d413e69e2. The last use was removed on Nov 20, 2017 in commit 268467869b99b15a15f81bf009d31e11536bef39. --- llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index 12e86e0..6e09dec 100644 --- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -146,7 +146,6 @@ class InductiveRangeCheck { const SCEV *Step = nullptr; const SCEV *End = nullptr; Use *CheckUse = nullptr; - bool IsSigned = true; static bool parseRangeCheckICmp(Loop *L, ICmpInst *ICI, ScalarEvolution &SE, Value *&Index, Value *&Length, @@ -161,7 +160,6 @@ public: const SCEV *getBegin() const { return Begin; } const SCEV *getStep() const { return Step; } const SCEV *getEnd() const { return End; } - bool isSigned() const { return IsSigned; } void print(raw_ostream &OS) const { OS << "InductiveRangeCheck:\n"; @@ -405,7 +403,6 @@ void InductiveRangeCheck::extractRangeChecksFromCond( IRC.Begin = IndexAddRec->getStart(); IRC.Step = IndexAddRec->getStepRecurrence(SE); IRC.CheckUse = &ConditionUse; - IRC.IsSigned = IsSigned; Checks.push_back(IRC); } -- 2.7.4