YulOpt: Add comment about optimization

This commit is contained in:
Mathias Baumann 2019-03-05 19:41:46 +01:00 committed by chriseth
parent db3bea7b56
commit 433175b19e

View File

@ -109,6 +109,8 @@ void StructuralSimplifier::simplify(std::vector<yul::Statement>& _statements)
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))
{
Block* matchingCaseBlock = nullptr;