[PATCH] D20552: AMDGPU: Allow clustering flat memory operations
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 20:46:10 PDT 2016
arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm.
http://reviews.llvm.org/D20552
Files:
lib/Target/AMDGPU/SIInstrInfo.cpp
Index: lib/Target/AMDGPU/SIInstrInfo.cpp
===================================================================
--- lib/Target/AMDGPU/SIInstrInfo.cpp
+++ lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -304,7 +304,8 @@
const MachineOperand *SecondDst = nullptr;
if ((isMUBUF(*FirstLdSt) && isMUBUF(*SecondLdSt)) ||
- (isMTBUF(*FirstLdSt) && isMTBUF(*SecondLdSt))) {
+ (isMTBUF(*FirstLdSt) && isMTBUF(*SecondLdSt)) ||
+ (isFLAT(*FirstLdSt) && isFLAT(*SecondLdSt))) {
FirstDst = getNamedOperand(*FirstLdSt, AMDGPU::OpName::vdata);
SecondDst = getNamedOperand(*SecondLdSt, AMDGPU::OpName::vdata);
} else if (isSMRD(*FirstLdSt) && isSMRD(*SecondLdSt)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20552.58184.patch
Type: text/x-patch
Size: 671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160524/8ced1db5/attachment.bin>
More information about the llvm-commits
mailing list