diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/CoalesceLocals.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/passes/CoalesceLocals.cpp b/src/passes/CoalesceLocals.cpp index 1bcc74f79..a7c8b7fc0 100644 --- a/src/passes/CoalesceLocals.cpp +++ b/src/passes/CoalesceLocals.cpp @@ -279,11 +279,6 @@ void CoalesceLocals::pickIndices(std::vector<Index>& indices) { indices.push_back(0); return; } - if (getFunction()->getNumVars() <= 1) { - // nothing to think about here, since we can't reorder params - indices = makeIdentity(numLocals); - return; - } // take into account total copies. but we must keep params in place, so give them max priority auto adjustedTotalCopies = totalCopies; auto numParams = getFunction()->getNumParams(); |