diff options
author | Andy Wingo <wingo@igalia.com> | 2021-05-28 12:42:12 +0200 |
---|---|---|
committer | Andy Wingo <wingo@igalia.com> | 2021-05-28 12:42:12 +0200 |
commit | ca5f07f8c4bc96d16ed1992b810aa3897df157f2 (patch) | |
tree | a3bf0e22a54b9ff8a51a50bec101e2d59f883f0b /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | |
parent | 9ff2eb1ea596a52ad2b5cfab826548c3af0a1e6e (diff) | |
download | llvm-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.cpp | 4 |
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. |