[llvm] [Scalar] Remove an unused variable (PR #105767)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 19:02:02 PDT 2024


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/105767

The last use was removed by:

  commit 89fe570958f8b82df9a9c3b4c251ecba9753272a
  Author: Philip Reames <listmail at philipreames.com>
  Date:   Tue May 12 23:39:23 2015 +0000


>From 9c70dcea147f2d3f7dbbef694f786553dba5da20 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 22 Aug 2024 18:57:02 -0700
Subject: [PATCH] [Scalar] Remove an unused variable

The last use was removed by:

  commit 89fe570958f8b82df9a9c3b4c251ecba9753272a
  Author: Philip Reames <listmail at philipreames.com>
  Date:   Tue May 12 23:39:23 2015 +0000
---
 llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
index 77d67a2ce0f380..bf86be0dd387f0 100644
--- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
+++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
@@ -342,7 +342,6 @@ bool PlaceSafepointsPass::runImpl(Function &F, const TargetLibraryInfo &TLI) {
         // The split loop structure here is so that we only need to recalculate
         // the dominator tree once.  Alternatively, we could just keep it up to
         // date and use a more natural merged loop.
-        SetVector<BasicBlock *> SplitBackedges;
         for (BasicBlock *Header : Headers) {
           BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT);
           PollsNeeded.push_back(NewBB->getTerminator());



More information about the llvm-commits mailing list