summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-28 23:44:31 +0000
committerThomas Lively <tlively@google.com>2019-01-28 23:44:31 +0000
commit33f87b8aef87cd365ec59f0961ad8de8bd848bc0 (patch)
tree1bfa423e95e7f9a028bbe52d2dace3e8cd0fba96 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent2f616e479bf1f98360139f8b6ec1c82afe2862f5 (diff)
downloadbcm5719-llvm-33f87b8aef87cd365ec59f0961ad8de8bd848bc0.tar.gz
bcm5719-llvm-33f87b8aef87cd365ec59f0961ad8de8bd848bc0.zip
[WebAssembly] Expand BUILD_PAIR nodes
Reviewers: aheejin Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish Differential Revision: https://reviews.llvm.org/D57276 llvm-svn: 352442
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 7186d29d7b4..1a8b598c074 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -225,6 +225,9 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
}
}
+ // Don't do anything clever with build_pairs
+ setOperationAction(ISD::BUILD_PAIR, MVT::i64, Expand);
+
// Trap lowers to wasm unreachable
setOperationAction(ISD::TRAP, MVT::Other, Legal);
OpenPOWER on IntegriCloud