[llvm-branch-commits] [llvm] d56982b - Remove unused variables.

Tres Popp via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 21 07:29:03 PST 2020


Author: Michael Forster
Date: 2020-12-21T16:24:43+01:00
New Revision: d56982b6f5fb17fb1fa50b31ab4b67b8d3a76c24

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

LOG: Remove unused variables.

Differential Revision: https://reviews.llvm.org/D93635

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/IROutliner.cpp b/llvm/lib/Transforms/IPO/IROutliner.cpp
index 4031eedced7c..c879031faf5a 100644
--- a/llvm/lib/Transforms/IPO/IROutliner.cpp
+++ b/llvm/lib/Transforms/IPO/IROutliner.cpp
@@ -429,8 +429,7 @@ findExtractedInputToOverallInputMapping(OutlinableRegion &Region,
     // It is not a constant, check if it is a sunken alloca.  If it is not,
     // create the mapping from extracted to overall.  If it is, create the
     // mapping of the index to the value.
-    unsigned Found = ArgInputs.count(Input);
-    assert(Found && "Input cannot be found!");
+    assert(ArgInputs.count(Input) && "Input cannot be found!");
 
     Region.ExtractedArgToAgg.insert(std::make_pair(OriginalIndex, TypeIndex));
     Region.AggArgToExtracted.insert(std::make_pair(TypeIndex, OriginalIndex));
@@ -475,7 +474,6 @@ void IROutliner::findAddInputsOutputs(Module &M, OutlinableRegion &Region) {
 /// \returns a call instruction with the replaced function.
 CallInst *replaceCalledFunction(Module &M, OutlinableRegion &Region) {
   std::vector<Value *> NewCallArgs;
-  DenseMap<unsigned, unsigned>::iterator ArgPair;
 
   OutlinableGroup &Group = *Region.Parent;
   CallInst *Call = Region.Call;


        


More information about the llvm-branch-commits mailing list