summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-12-08 20:00:45 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-12-08 20:00:45 +0000
commitecad0d53645ae6719b725d54d72dea075e085fb3 (patch)
tree982e11714038dd03c64338f4a7266ec10ca953f6
parent9174b684b7cd13e26b0eb35e33a67a9b6e971862 (diff)
downloadbcm5719-llvm-ecad0d53645ae6719b725d54d72dea075e085fb3.tar.gz
bcm5719-llvm-ecad0d53645ae6719b725d54d72dea075e085fb3.zip
AMDGPU: Preserve MMO in adjustWritemask
Follow up to r319705. Currently the MMO is produced after this in the custom inserter, so this doesn't change anything yet. llvm-svn: 320186
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 18dc0fb430b..9f9f0a9007f 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -6656,6 +6656,8 @@ SDNode *SITargetLowering::adjustWritemask(MachineSDNode *&Node,
MachineSDNode *NewNode = DAG.getMachineNode(NewOpcode, SDLoc(Node),
NewVTList, Ops);
+ NewNode->setMemRefs(Node->memoperands_begin(), Node->memoperands_end());
+
// Update chain.
DAG.ReplaceAllUsesOfValueWith(SDValue(Node, 1), SDValue(NewNode, 1));
OpenPOWER on IntegriCloud