[llvm] AMDGPU/GlobalISel: Legalize BF16 FSQRT, FLOG2, and FEXP2 (PR #214123)
Lukas Sommer via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 23:03:51 PDT 2026
================
@@ -1096,7 +1098,9 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
} else {
getActionDefinitionsBuilder(G_FSQRT)
.customFor({F32, F64, F16})
+ .legalFor(ST.hasBF16TransInsts(), {BF16})
----------------
sommerlukas wrote:
Can we actually have a scenario where `has16BitInsts` is `false` while `hasBF16TransInsts` is `true`?
https://github.com/llvm/llvm-project/pull/214123
More information about the llvm-commits
mailing list