[clang] [llvm] [Arch64][SVE] Lower svrev_* to llvm.vector.reverse and fold svrev(svrev(x)) -> x (PR #116422)

Benjamin Maxwell via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 05:19:40 PST 2025


================
@@ -21962,6 +21962,35 @@ SDValue tryLowerPartialReductionToWideAdd(SDNode *N,
   return DAG.getNode(TopOpcode, DL, AccVT, BottomNode, ExtOp);
 }
 
+static SDValue foldRevInvolution(SDNode *N) {
----------------
MacDue wrote:


Please add a doc comment that explains what this does (I know "Involution" is the mathematical term for this, but it's not a super common term). 


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


More information about the cfe-commits mailing list