[llvm] [Hexagon] Fix HWBF16 PatLeaf type (PR #170560)
Fateme Hosseini via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 13:38:14 PST 2025
https://github.com/fhossein-quic created https://github.com/llvm/llvm-project/pull/170560
Correct the definition of `HWBF16` to reference `VecPBF16` rather than `VecBF16`, aligning it with the existing pattern-leaf conventions for pointer vector types.
>From 1195d372a8627218629f2cc4f9c020c04db76440 Mon Sep 17 00:00:00 2001
From: Fateme Hosseini <quic_fhossein at quicinc.com>
Date: Wed, 3 Dec 2025 13:29:29 -0800
Subject: [PATCH] [Hexagon] Fix HWBF16 PatLeaf type
Correct the definition of `HWBF16` to reference `VecPBF16`
rather than `VecBF16`, aligning it with the existing
pattern-leaf conventions for pointer vector types.
---
llvm/lib/Target/Hexagon/HexagonPatternsHVX.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/Hexagon/HexagonPatternsHVX.td b/llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
index 4cb29e7f00317..8783aa8ce829f 100644
--- a/llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
+++ b/llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
@@ -22,7 +22,7 @@ def HWI16: PatLeaf<(VecPI16 HvxWR:$R)>;
def HWI32: PatLeaf<(VecPI32 HvxWR:$R)>;
def HWF16: PatLeaf<(VecPF16 HvxWR:$R)>;
def HWF32: PatLeaf<(VecPF32 HvxWR:$R)>;
-def HWBF16: PatLeaf<(VecBF16 HvxWR:$R)>;
+def HWBF16: PatLeaf<(VecPBF16 HvxWR:$R)>;
def SDTVecUnaryOp:
SDTypeProfile<1, 1, [SDTCisVec<0>, SDTCisVec<1>]>;
More information about the llvm-commits
mailing list