Allow msize optimization only if it is not present.

This commit is contained in:
chriseth
2019-05-28 12:54:32 +02:00
parent afe887adc1
commit d7b5ea6761
10 changed files with 100 additions and 17 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ void ExpressionSimplifier::visit(Expression& _expression)
// so if the value of the variable is not movable, the expression that references
// the variable still is.
if (match->removesNonConstants && !MovableChecker(m_dialect, _expression).movable())
if (match->removesNonConstants && !SideEffectsCollector(m_dialect, _expression).movable())
return;
_expression = match->action().toExpression(locationOf(_expression));
}