[llvm] [AMDGPU] Cache calls to `getCanBeVOPD` (PR #199714)
Igor Wodiany via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 03:17:43 PDT 2026
IgWod wrote:
> > I think you need to either add `EncodingFamily` to the map's key or clean the cache in between functions.
>
> That is because a single compiler instance can be used to compile for different subtragets. Even a single module can contain functions with attributes selecting a different subtarget.
Make sense, I assumed a single instance will only target a single subtarget, that's why I omitted it, but it looks like that's not that case, so thanks for confirming.
https://github.com/llvm/llvm-project/pull/199714
More information about the llvm-commits
mailing list