[all-commits] [llvm/llvm-project] fefdf7: [SelectionDAG] Fold constant min/max vector reduct...

lianjinfeng2003 via All-commits all-commits at lists.llvm.org
Fri Jul 17 15:10:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fefdf74c073b0361fb9a5100f6b1f38a13d72e55
      https://github.com/llvm/llvm-project/commit/fefdf74c073b0361fb9a5100f6b1f38a13d72e55
  Author: lianjinfeng2003 <101249452+mygitljf at users.noreply.github.com>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    A llvm/test/CodeGen/RISCV/rvv/vecreduce-minmax-constant-fold.ll

  Log Message:
  -----------
  [SelectionDAG] Fold constant min/max vector reductions (#209190)

I extended constant folding to handle signed and unsigned min/max vector
reductions. Constant vectors now become scalar constants before target
lowering, while non-constant, poison, and undef behavior stays
unchanged.
Fixes #209109



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list