Skip to content

Commit 88fdb19

Browse files
committed
Remove unused code
1 parent 1dc2521 commit 88fdb19

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libyul/backends/evm/ssa/StackLayoutGenerator.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ void reduceStackToLiveness(StackLayoutGenerator::StackType& _stack, std::set<SSA
103103
}
104104
}
105105

106-
107106
}
108107

109108
StackLayoutGenerator::StackLayoutGenerator(LivenessAnalysis const& _liveness, TerminationPathAnalysis const& _junkBlockFinder):
@@ -376,10 +375,6 @@ void StackLayoutGenerator::visitBlock(SSACFG::BlockId const& _blockId)
376375
requiredStackTop.emplace_back(FunctionReturnLabel{&call->call.get()});
377376
requiredStackTop += operation.inputs;
378377

379-
static auto constexpr slotIsCompatible = [](Slot const& _source, Slot const& _target)
380-
{
381-
return std::holds_alternative<JunkSlot>(_target) || _source == _target;
382-
};
383378

384379
for (size_t depth = 0; depth < stack.size(); ++depth)
385380
if (!liveOutWithoutOutputsSet.contains(stack.slot(depth)) && ranges::find(requiredStackTop, stack.slot(depth)) == ranges::end(requiredStackTop))

0 commit comments

Comments
 (0)