[llvm] [SelectionDAG] Add SDTCisInt<1>/SDTCisFP<1> to SDTVecReduce/SDTFPVecReduce. NFC (PR #162761)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 20:28:32 PDT 2025


================
@@ -300,10 +300,10 @@ def SDTVecInsert : SDTypeProfile<1, 3, [    // vector insert
   SDTCisEltOfVec<2, 1>, SDTCisSameAs<0, 1>, SDTCisPtrTy<3>
 ]>;
 def SDTVecReduce : SDTypeProfile<1, 1, [    // vector reduction
-  SDTCisInt<0>, SDTCisVec<1>
+  SDTCisInt<0>, SDTCisVec<1>, SDTCisInt<1>
 ]>;
 def SDTFPVecReduce : SDTypeProfile<1, 1, [  // FP vector reduction
-  SDTCisFP<0>, SDTCisVec<1>
+  SDTCisFP<0>, SDTCisVec<1>, SDTCisFP<1>
----------------
topperc wrote:

It might be a requirement in SelectionDAG for FP but not int.

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


More information about the llvm-commits mailing list