[llvm] [PowerPC] Correct the SDTypeProfile for VECSHL and FP_EXTEND_HALF. (PR #228341)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 23:48:53 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-powerpc

Author: Craig Topper (topperc)

<details>
<summary>Changes</summary>

These used SDTCisPtrTy, but the operand is always created with i32 type.

---
Full diff: https://github.com/llvm/llvm-project/pull/228341.diff


2 Files Affected:

- (modified) llvm/lib/Target/PowerPC/PPCInstrInfo.td (+1-1) 
- (modified) llvm/lib/Target/PowerPC/PPCInstrVSX.td (+1-1) 


``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 59d33f8ee21db..cc1b9972ef13a 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -55,7 +55,7 @@ def SDT_PPCSpToDp : SDTypeProfile<1, 1, [ SDTCisVT<0, v2f64>,
 ]>;
 
 def SDT_PPCVecShift : SDTypeProfile<1, 3, [ SDTCisVec<0>,
-  SDTCisVec<1>, SDTCisVec<2>, SDTCisPtrTy<3>
+  SDTCisVec<1>, SDTCisVec<2>, SDTCisVT<3, i32>
 ]>;
 
 def SDT_PPCVecShiftQuad : SDTypeProfile<1, 2, [
diff --git a/llvm/lib/Target/PowerPC/PPCInstrVSX.td b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
index 4171ff46baddd..8961f0bb8ca96 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrVSX.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrVSX.td
@@ -56,7 +56,7 @@ def SDT_PPCldvsxlh : SDTypeProfile<1, 1, [
 ]>;
 
 def SDT_PPCfpexth : SDTypeProfile<1, 2, [
-  SDTCisVT<0, v2f64>, SDTCisVT<1, v4f32>, SDTCisPtrTy<2>
+  SDTCisVT<0, v2f64>, SDTCisVT<1, v4f32>, SDTCisVT<2, i32>
 ]>;
 
 def SDT_PPCldsplat : SDTypeProfile<1, 1, [

``````````

</details>


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


More information about the llvm-commits mailing list