[llvm] [AMDGPU][GlobalISel] Don't legalize scalar s16 merge/unmerge into wider scalars with true16 (PR #207999)
Krzysztof Drewniak via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 09:03:12 PDT 2026
================
@@ -2114,7 +2114,16 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
auto &Builder =
getActionDefinitionsBuilder(Op)
- .legalIf(all(isRegisterType(ST, 0), isRegisterType(ST, 1)))
+ .legalIf(all(isRegisterType(ST, 0), isRegisterType(ST, 1),
+ LegalityPredicate([=](const LegalityQuery &Query) {
+ const LLT BigTy = Query.Types[BigTyIdx];
+ const LLT LitTy = Query.Types[LitTyIdx];
----------------
krzysz00 wrote:
I'd appreciate that, yeah
https://github.com/llvm/llvm-project/pull/207999
More information about the llvm-commits
mailing list