File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,17 @@ VmemType getVmemType(const MachineInstr &Inst) {
202
202
const AMDGPU::MIMGInfo *Info = AMDGPU::getMIMGInfo (Inst.getOpcode ());
203
203
const AMDGPU::MIMGBaseOpcodeInfo *BaseInfo =
204
204
AMDGPU::getMIMGBaseOpcodeInfo (Info->BaseOpcode );
205
+
206
+ if (BaseInfo->BVH )
207
+ return VMEM_BVH;
208
+
205
209
// We have to make an additional check for isVSAMPLE here since some
206
210
// instructions don't have a sampler, but are still classified as sampler
207
211
// instructions for the purposes of e.g. waitcnt.
208
- bool HasSampler =
209
- BaseInfo->Sampler || BaseInfo->MSAA || SIInstrInfo::isVSAMPLE (Inst);
210
- return BaseInfo->BVH ? VMEM_BVH : HasSampler ? VMEM_SAMPLER : VMEM_NOSAMPLER;
212
+ if (BaseInfo->Sampler || BaseInfo->MSAA || SIInstrInfo::isVSAMPLE (Inst))
213
+ return VMEM_SAMPLER;
214
+
215
+ return VMEM_NOSAMPLER;
211
216
}
212
217
213
218
unsigned &getCounterRef (AMDGPU::Waitcnt &Wait, InstCounterType T) {
You can’t perform that action at this time.
0 commit comments