summaryrefslogtreecommitdiff
path: root/src/passes/CoalesceLocals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/CoalesceLocals.cpp')
-rw-r--r--src/passes/CoalesceLocals.cpp5
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();