Skip to content

Commit 0664772

Browse files
committed
Some renaming leftovers.
1 parent b2b845d commit 0664772

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libyul/optimiser/ExpressionJoiner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void ExpressionJoiner::operator()(Switch& _switch)
5656
{
5757
visit(*_switch.expression);
5858
for (auto& _case: _switch.cases)
59-
// Do not visit the case expression, nothing to unbreak there.
59+
// Do not visit the case expression, nothing to join there.
6060
(*this)(_case.body);
6161
}
6262

libyul/optimiser/ExpressionSplitter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ void ExpressionSplitter::operator()(Switch& _switch)
5656
{
5757
outlineExpression(*_switch.expression);
5858
for (auto& _case: _switch.cases)
59-
// Do not visit the case expression, nothing to break there.
59+
// Do not visit the case expression, nothing to split there.
6060
(*this)(_case.body);
6161
}
6262

6363
void ExpressionSplitter::operator()(ForLoop& _loop)
6464
{
6565
(*this)(_loop.pre);
66-
// Do not visit the condition because we cannot break expressions there.
66+
// Do not visit the condition because we cannot split expressions there.
6767
(*this)(_loop.post);
6868
(*this)(_loop.body);
6969
}

test/libyul/yulOptimizerTests/fullInliner/inside_condition.yul

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This tests that breaking the expression inside the condition works properly.
1+
// This tests that splitting the expression inside the condition works properly.
22
{
33
if gt(f(mload(1)), mload(0)) {
44
sstore(0, 2)

0 commit comments

Comments
 (0)