From 111eaa1e9ba4bea0e98d92b6d187ffa203318a99 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 26 Nov 2020 17:38:01 +0100 Subject: [PATCH] Superspeed. --- libyul/optimiser/CommonSubexpressionEliminator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyul/optimiser/CommonSubexpressionEliminator.cpp b/libyul/optimiser/CommonSubexpressionEliminator.cpp index 2f80e7bc4..6a739618c 100644 --- a/libyul/optimiser/CommonSubexpressionEliminator.cpp +++ b/libyul/optimiser/CommonSubexpressionEliminator.cpp @@ -103,9 +103,9 @@ void CommonSubexpressionEliminator::visit(Expression& _e) for (auto const& [variable, value]: m_value) { assertThrow(value.value, OptimizerException, ""); - assertThrow(inScope(variable), OptimizerException, ""); if (SyntacticallyEqual{}(_e, *value.value)) { + assertThrow(inScope(variable), OptimizerException, ""); _e = Identifier{locationOf(_e), variable}; break; }