[llvm] [InstCombine] Fold vector.reduce.op(vector.reverse(X)) -> vector.reduce.op(X) (PR #91743)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 06:12:16 PDT 2024


================
@@ -1435,6 +1435,34 @@ static Instruction *foldBitOrderCrossLogicOp(Value *V,
   return nullptr;
 }
 
+Value *InstCombinerImpl::simplifyReductionOperand(Value *Arg,
+                                                  bool CanReorderLanes) {
----------------
paulwalker-arm wrote:

I'm happy either way but I suppose at this moment in time this could just be a static function.

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


More information about the llvm-commits mailing list