aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2022-12-01 19:33:11 +0100
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2022-12-03 14:15:15 -0600
commit17db0de330f943833296ae72e26fa988bba39cb3 (patch)
tree433e27a59c2c7a331eaf94daa0ff44f0f74ac6a0 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent9a41739565d9f7ce94da5e7d83947ead73d9bd54 (diff)
downloadllvm-17db0de330f943833296ae72e26fa988bba39cb3.zip
llvm-17db0de330f943833296ae72e26fa988bba39cb3.tar.gz
llvm-17db0de330f943833296ae72e26fa988bba39cb3.tar.bz2
Reapply "[CodeGen] Add new pass for late cleanup of redundant definitions."
Init captures added in processBlock() to avoid capturing structured bindings, which caused the build problems (with clang). RISCV has this disabled for now until problems relating to post RA pseudo expansions are resolved.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index ffc3de2..497ba8d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -501,6 +501,7 @@ void WebAssemblyPassConfig::addPostRegAlloc() {
// them.
// These functions all require the NoVRegs property.
+ disablePass(&MachineLateInstrsCleanupID);
disablePass(&MachineCopyPropagationID);
disablePass(&PostRAMachineSinkingID);
disablePass(&PostRASchedulerID);