From 9106d72a02aa52b0c48db2eef7e4f9df213500b5 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 29 Apr 2015 18:16:05 +0200 Subject: Split known state from common subexpression eliminator. --- Assembly.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Assembly.cpp') diff --git a/Assembly.cpp b/Assembly.cpp index 6cc09a4b..c7253622 100644 --- a/Assembly.cpp +++ b/Assembly.cpp @@ -329,7 +329,8 @@ Assembly& Assembly::optimise(bool _enable) copt << "Performing common subexpression elimination..."; for (auto iter = m_items.begin(); iter != m_items.end();) { - CommonSubexpressionEliminator eliminator; + KnownState state; + CommonSubexpressionEliminator eliminator(state); auto orig = iter; iter = eliminator.feedItems(iter, m_items.end()); AssemblyItems optItems; -- cgit