mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
YulOpt: Add comment about optimization
This commit is contained in:
parent
db3bea7b56
commit
433175b19e
@ -109,6 +109,8 @@ void StructuralSimplifier::simplify(std::vector<yul::Statement>& _statements)
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Replace the whole switch with the resulting case body if arg. is
|
||||||
|
// a constant
|
||||||
else if (boost::optional<u256> const constExprVal = hasLiteralValue(*_switchStmt.expression))
|
else if (boost::optional<u256> const constExprVal = hasLiteralValue(*_switchStmt.expression))
|
||||||
{
|
{
|
||||||
Block* matchingCaseBlock = nullptr;
|
Block* matchingCaseBlock = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user