diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 12:03:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-10 12:03:23 -0700 |
commit | 91b33ce4d692c221336f2d6d4345eb239ead401e (patch) | |
tree | 942787f4de6b5fbb286611af27786fdd681c9fe4 /src | |
parent | facfa01e3ffa3f89de4e2a2453fabf01be15eb4c (diff) | |
download | binaryen-91b33ce4d692c221336f2d6d4345eb239ead401e.tar.gz binaryen-91b33ce4d692c221336f2d6d4345eb239ead401e.tar.bz2 binaryen-91b33ce4d692c221336f2d6d4345eb239ead401e.zip |
optimization comment
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/CoalesceLocals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Index>& 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; |