[llvm] [Hexagon] Fix HWBF16 PatLeaf type (PR #170560)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 13:38:45 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-hexagon
Author: Fateme Hosseini (fhossein-quic)
<details>
<summary>Changes</summary>
Correct the definition of `HWBF16` to reference `VecPBF16` rather than `VecBF16`, aligning it with the existing pattern-leaf conventions for pointer vector types.
---
Full diff: https://github.com/llvm/llvm-project/pull/170560.diff
1 Files Affected:
- (modified) llvm/lib/Target/Hexagon/HexagonPatternsHVX.td (+1-1)
``````````diff
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>]>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/170560
More information about the llvm-commits
mailing list