aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2020-06-03 01:26:53 -0700
committerThomas Lively <tlively@google.com>2020-06-03 01:26:53 -0700
commit755a89591528b692315ad0325347e2fd4637271b (patch)
treedb7a341cd7456166ab5ca710a1702bf94071d369 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent65fa0a9f7f3e6090e335c14f9edea19358d87613 (diff)
downloadllvm-755a89591528b692315ad0325347e2fd4637271b.zip
llvm-755a89591528b692315ad0325347e2fd4637271b.tar.gz
llvm-755a89591528b692315ad0325347e2fd4637271b.tar.bz2
Revert "[WebAssembly] Eliminate range checks on br_tables"
This reverts commit f99d5f8c32a822580a732d15a34e8197da55d22b. The change was causing UBSan and other failures on some bots.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 7bf655c9..ca098427 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -406,10 +406,6 @@ bool WebAssemblyPassConfig::addInstSelector() {
// it's inconvenient to collect. Collect it now, and update the immediate
// operands.
addPass(createWebAssemblySetP2AlignOperands());
-
- // Eliminate range checks and add default targets to br_table instructions.
- addPass(createWebAssemblyFixBrTableDefaults());
-
return false;
}