[llvm] 7e38ee6 - [NFC][IRCE] Remove dead variables

Aleksandr Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 23:28:02 PDT 2023


Author: Aleksandr Popov
Date: 2023-07-03T02:53:25+02:00
New Revision: 7e38ee6765647353ef8e5adbec2de4ef11606992

URL: https://github.com/llvm/llvm-project/commit/7e38ee6765647353ef8e5adbec2de4ef11606992
DIFF: https://github.com/llvm/llvm-project/commit/7e38ee6765647353ef8e5adbec2de4ef11606992.diff

LOG: [NFC][IRCE] Remove dead variables

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
index 6223d97c7679cd..344916bc53dd0c 100644
--- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
@@ -1877,7 +1877,6 @@ bool InductiveRangeCheckElimination::run(
       cast<SCEVAddRecExpr>(SE.getMinusSCEV(SE.getSCEV(LS.IndVarBase), SE.getSCEV(LS.IndVarStep)));
 
   std::optional<InductiveRangeCheck::Range> SafeIterRange;
-  Instruction *ExprInsertPt = Preheader->getTerminator();
 
   SmallVector<InductiveRangeCheck, 4> RangeChecksToEliminate;
   // Basing on the type of latch predicate, we interpret the IV iteration range
@@ -1887,7 +1886,6 @@ bool InductiveRangeCheckElimination::run(
   auto IntersectRange =
       LS.IsSignedPredicate ? IntersectSignedRange : IntersectUnsignedRange;
 
-  IRBuilder<> B(ExprInsertPt);
   for (InductiveRangeCheck &IRC : RangeChecks) {
     auto Result = IRC.computeSafeIterationSpace(SE, IndVar,
                                                 LS.IsSignedPredicate);


        


More information about the llvm-commits mailing list