Skip to content

Commit 031db99

Browse files
committed
use != and isVMEM only
1 parent 0f00dab commit 031db99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ bool SIInstrInfo::shouldClusterMemOps(ArrayRef<const MachineOperand *> BaseOps1,
591591
return false;
592592

593593
// Don't cluster scalar and vector memory ops
594-
if ((isVMEM(FirstLdSt) && isSMRD(SecondLdSt)) ||
595-
(isSMRD(FirstLdSt) && isVMEM(SecondLdSt)))
594+
if (isVMEM(FirstLdSt) != isVMEM(SecondLdSt))
596595
return false;
597596
} else {
598597
// If the mem ops (to be clustered) do not have the same base ptr, then

0 commit comments

Comments
 (0)