aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2021-05-28 12:42:12 +0200
committerAndy Wingo <wingo@igalia.com>2021-05-28 12:42:12 +0200
commitca5f07f8c4bc96d16ed1992b810aa3897df157f2 (patch)
treea3bf0e22a54b9ff8a51a50bec101e2d59f883f0b /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
parent9ff2eb1ea596a52ad2b5cfab826548c3af0a1e6e (diff)
downloadllvm-ca5f07f8c4bc96d16ed1992b810aa3897df157f2.zip
llvm-ca5f07f8c4bc96d16ed1992b810aa3897df157f2.tar.gz
llvm-ca5f07f8c4bc96d16ed1992b810aa3897df157f2.tar.bz2
Revert "[WebAssembly][CodeGen] IR support for WebAssembly local variables"
This reverts commit 00ecf18979e3326b3afee8af3dc701c53ffdc93f, as it broke the AMDGPU build. Will reland later with a fix.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
index 4a0738d..7ed224d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
@@ -239,10 +239,8 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) {
Changed = true;
}
- // Start assigning local numbers after the last parameter and after any
- // already-assigned locals.
+ // Start assigning local numbers after the last parameter.
unsigned CurLocal = static_cast<unsigned>(MFI.getParams().size());
- CurLocal += static_cast<unsigned>(MFI.getLocals().size());
// Precompute the set of registers that are unused, so that we can insert
// drops to their defs.