From 016fb18ef83987c95ea3655afb1a8fd5ff6e3950 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 15 Dec 2017 11:55:18 +0100 Subject: Rematerialisation. --- libjulia/optimiser/NameCollector.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libjulia/optimiser/NameCollector.cpp') diff --git a/libjulia/optimiser/NameCollector.cpp b/libjulia/optimiser/NameCollector.cpp index f94104b7..510ee289 100644 --- a/libjulia/optimiser/NameCollector.cpp +++ b/libjulia/optimiser/NameCollector.cpp @@ -67,3 +67,9 @@ map ReferencesCounter::countReferences(Expression const& _expres counter.visit(_expression); return counter.references(); } + +void Assignments::operator()(Assignment const& _assignment) +{ + for (auto const& var: _assignment.variableNames) + m_names.insert(var.name); +} -- cgit