[llvm] [InstCombine] Fold vector.reduce.op(vector.reverse(X)) -> vector.reduce.op(X) (PR #91743)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 02:53:32 PDT 2024
================
@@ -3364,6 +3421,12 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
// zext(vector_reduce_{and,or}(<n x i1>))
Value *Arg = II->getArgOperand(0);
Value *Vect;
+
+ if (Value *NewOp = simplifyReductionOperand(Arg, true)) {
----------------
david-arm wrote:
Done!
https://github.com/llvm/llvm-project/pull/91743
More information about the llvm-commits
mailing list