YulOpt: Add comment about optimization

This commit is contained in:
Mathias Baumann
2019-03-06 18:39:44 +01:00
committed by chriseth
parent db3bea7b56
commit 433175b19e
@@ -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;