[PATCH] D133864: [AMDGPU][MC][GFX11] Add VOPD literals validation
Dmitry Preobrazhensky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 08:23:18 PDT 2022
dp added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp:431
+bool isVOPD(unsigned Opc) {
+ return AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src0X) != -1;
+}
----------------
It turned out that `getNamedOperandIdx` is about 2 times faster than `getVOPDOpcodeHelper`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133864/new/
https://reviews.llvm.org/D133864
More information about the llvm-commits
mailing list