[llvm] [AMDGPU] Classify FLAT instructions as VMEM (PR #137148)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue May 6 06:07:14 PDT 2025
================
@@ -2454,8 +2454,10 @@ bool SIInsertWaitcnts::isPreheaderToFlush(
}
bool SIInsertWaitcnts::isVMEMOrFlatVMEM(const MachineInstr &MI) const {
- return SIInstrInfo::isVMEM(MI) ||
- (SIInstrInfo::isFLAT(MI) && mayAccessVMEMThroughFlat(MI));
+ if (SIInstrInfo::isFLAT(MI))
+ return mayAccessVMEMThroughFlat(MI);
+ return SIInstrInfo::isMUBUF(MI) || SIInstrInfo::isMTBUF(MI) ||
+ SIInstrInfo::isImage(MI);
----------------
jayfoad wrote:
That's not how I interpreted Matt's comment, but it's not important anyway.
https://github.com/llvm/llvm-project/pull/137148
More information about the llvm-commits
mailing list