[NFC] Removed unused variable
authorArthur Eubanks <aeubanks@google.com>
Fri, 13 Nov 2020 06:20:39 +0000 (22:20 -0800)
committerArthur Eubanks <aeubanks@google.com>
Fri, 13 Nov 2020 06:24:57 +0000 (22:24 -0800)
Obsolete as of https://reviews.llvm.org/D91046.

llvm/lib/Transforms/IPO/Inliner.cpp

index 0e2e0db..9be4ce0 100644 (file)
@@ -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