[llvm] [AMDGPU][NFC][SIInsertWaitcnts] Remove redundant checks for invalidate instructions (PR #166139)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 02:54:45 PST 2025
================
@@ -530,16 +544,6 @@ class SIInsertWaitcnts {
// Return the appropriate VMEM_*_ACCESS type for Inst, which must be a VMEM
// instruction.
WaitEventType getVmemWaitEventType(const MachineInstr &Inst) const {
- switch (Inst.getOpcode()) {
----------------
jayfoad wrote:
Is there some reason why this function _should not_ handle these instructions? The only documented precondition is that Inst should be a VMEM instruction, which these are.
https://github.com/llvm/llvm-project/pull/166139
More information about the llvm-commits
mailing list