summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-31 16:50:36 -0700
committerVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-31 16:52:44 -0700
commit92a25fbf11da51c8e3573b81a877d3b226990c07 (patch)
tree0cf58fd9216685a0763cdfa689d6d3bb267ce3b5 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parentfd3d45006178afef983cc89b69e96d4104147a28 (diff)
downloadbcm5719-llvm-92a25fbf11da51c8e3573b81a877d3b226990c07.tar.gz
bcm5719-llvm-92a25fbf11da51c8e3573b81a877d3b226990c07.zip
Revert "[WebAssembly] Handle multiple loads of splatted loads"
This reverts commit 2ab1b8c1ec452fb743f6cc5051e75a01039cabfe, it is causing build failures on numerous bots, including sanitizer-x86_64-linux-bootstrap-ubsan. My previous revert was for the wrong commit.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 733ed743865..f06afdbcea9 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -461,14 +461,11 @@ const char *
WebAssemblyTargetLowering::getTargetNodeName(unsigned Opcode) const {
switch (static_cast<WebAssemblyISD::NodeType>(Opcode)) {
case WebAssemblyISD::FIRST_NUMBER:
- case WebAssemblyISD::FIRST_MEM_OPCODE:
break;
#define HANDLE_NODETYPE(NODE) \
case WebAssemblyISD::NODE: \
return "WebAssemblyISD::" #NODE;
-#define HANDLE_MEM_NODETYPE(NODE) HANDLE_NODETYPE(NODE)
#include "WebAssemblyISD.def"
-#undef HANDLE_MEM_NODETYPE
#undef HANDLE_NODETYPE
}
return nullptr;
@@ -1428,11 +1425,7 @@ SDValue WebAssemblyTargetLowering::LowerBUILD_VECTOR(SDValue Op,
if (Subtarget->hasUnimplementedSIMD128() &&
(SplattedLoad = dyn_cast<LoadSDNode>(SplatValue)) &&
SplattedLoad->getMemoryVT() == VecT.getVectorElementType()) {
- Result = DAG.getMemIntrinsicNode(
- WebAssemblyISD::LOAD_SPLAT, DL, DAG.getVTList({VecT}),
- {SplattedLoad->getChain(), SplattedLoad->getBasePtr(),
- SplattedLoad->getOffset()},
- SplattedLoad->getMemoryVT(), SplattedLoad->getMemOperand());
+ Result = DAG.getNode(WebAssemblyISD::LOAD_SPLAT, DL, VecT, SplatValue);
} else {
Result = DAG.getSplatBuildVector(VecT, DL, SplatValue);
}
OpenPOWER on IntegriCloud