Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D93635
  • Loading branch information
MForster authored and tpopp committed Dec 21, 2020
1 parent 88c5b50 commit d56982b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Transforms/IPO/IROutliner.cpp
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d56982b

Please sign in to comment.