[llvm] [AMDGPU][True16][CodeGen] true16 codegen pattern for v_mul_f16 (PR #122000)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 09:26:06 PST 2025


================
@@ -3079,7 +3079,19 @@ def : GCNPat<
 >;
 } // End OtherPredicates
 
-let OtherPredicates = [HasTrue16BitInsts] in {
+let True16Predicate = UseRealTrue16Insts in {
+def : GCNPat<
+  (fcanonicalize (f16 (VOP3Mods f16:$src, i32:$src_mods))),
----------------
broxigarchen wrote:

Right. I need to update the canonicalize test file.

It seems the canonicalize test file depends on V_CMP t16 and it's not supported yet. I'll move this to draft PR and reenable after it's ready

https://github.com/llvm/llvm-project/pull/122000


More information about the llvm-commits mailing list