[llvm] b940612 - [NFC] Removed unused variable

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 22:25:08 PST 2020


Author: Arthur Eubanks
Date: 2020-11-12T22:24:57-08:00
New Revision: b9406121a04eb04069b58815185f6da4ee22b455

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

LOG: [NFC] Removed unused variable

Obsolete as of https://reviews.llvm.org/D91046.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/Inliner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 0e2e0db88545..9be4ce0f9ec8 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -767,9 +767,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
   if (Calls.empty())
     return PreservedAnalyses::all();
 
-  // Capture updatable variables for the current SCC and RefSCC.
+  // Capture updatable variable for the current SCC.
   auto *C = &InitialC;
-  auto *RC = &C->getOuterRefSCC();
 
   // When inlining a callee produces new call sites, we want to keep track of
   // the fact that they were inlined from the callee.  This allows us to avoid
@@ -947,7 +946,6 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
     LazyCallGraph::SCC *OldC = C;
     C = &updateCGAndAnalysisManagerForCGSCCPass(CG, *C, N, AM, UR, FAM);
     LLVM_DEBUG(dbgs() << "Updated inlining SCC: " << *C << "\n");
-    RC = &C->getOuterRefSCC();
 
     // If this causes an SCC to split apart into multiple smaller SCCs, there
     // is a subtle risk we need to prepare for. Other transformations may


        


More information about the llvm-commits mailing list