From 91b33ce4d692c221336f2d6d4345eb239ead401e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 10 Sep 2016 12:03:23 -0700 Subject: optimization comment --- src/passes/CoalesceLocals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/passes/CoalesceLocals.cpp b/src/passes/CoalesceLocals.cpp index 2b6c63f2a..df564dddf 100644 --- a/src/passes/CoalesceLocals.cpp +++ b/src/passes/CoalesceLocals.cpp @@ -463,7 +463,7 @@ void CoalesceLocals::pickIndicesFromOrder(std::vector& order, std::vector for (Index j = 0; j < nextFree; j++) { if (!newInterferences[j * numLocals + actual] && getFunction()->getLocalType(actual) == types[j]) { // this does not interfere, so it might be what we want. but pick the one eliminating the most copies - // TODO: stop looking forward when there are no more items that have copies anyhow + // (we could stop looking forward when there are no more items that have copies anyhow, but it doesn't seem to help) auto currCopies = newCopies[j * numLocals + actual]; if (found == Index(-1) || currCopies > foundCopies) { indices[actual] = found = j; -- cgit v1.2.3