[llvm] r293809 - AMDGPU: Allow clustering flat memory operations
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 12:22:52 PST 2017
Author: arsenm
Date: Wed Feb 1 14:22:51 2017
New Revision: 293809
URL: http://llvm.org/viewvc/llvm-project?rev=293809&view=rev
Log:
AMDGPU: Allow clustering flat memory operations
Modified:
llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp?rev=293809&r1=293808&r2=293809&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp Wed Feb 1 14:22:51 2017
@@ -315,7 +315,8 @@ bool SIInstrInfo::shouldClusterMemOps(Ma
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)) {
More information about the llvm-commits
mailing list