[llvm] [InstCombine] Fold binary op of reductions. (PR #121567)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 19:04:44 PST 2025
================
@@ -2313,6 +2313,62 @@ Instruction *InstCombinerImpl::foldVectorBinop(BinaryOperator &Inst) {
return nullptr;
}
+static Intrinsic::ID getReductionForBinop(Instruction::BinaryOps Opc) {
+ switch (Opc) {
+ default:
+ break;
+ case Instruction::Add:
----------------
goldsteinn wrote:
None I think, was just a note
https://github.com/llvm/llvm-project/pull/121567
More information about the llvm-commits
mailing list