[llvm] [AMDGPU] Cache calls to `getCanBeVOPD` (PR #199714)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 27 09:08:51 PDT 2026
================
@@ -169,18 +169,32 @@ bool llvm::checkVOPDRegConstraints(const SIInstrInfo &TII,
return true;
}
+static AMDGPU::CanBeVOPD cachedGetCanBeVOPD(unsigned Opc,
+ unsigned EncodingFamily,
+ bool IsVOPD3,
+ CanBeVOPDCache &Cache) {
+ return Cache
+ .try_emplace((Opc << 1) | IsVOPD3,
----------------
rampitec wrote:
Yes
https://github.com/llvm/llvm-project/pull/199714
More information about the llvm-commits
mailing list