[all-commits] [llvm/llvm-project] 11c182: [RISCV] Use masked pseudo peephole for reduction p...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Nov 7 20:46:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11c182740a3b57a05a2d8cd2eb398a02165d4a57
      https://github.com/llvm/llvm-project/commit/11c182740a3b57a05a2d8cd2eb398a02165d4a57
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    M llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll

  Log Message:
  -----------
  [RISCV] Use masked pseudo peephole for reduction pseudos (#71508)

After #71483 we now have a way of marking masked pseudos as having an
unmasked
equivalent, but their mask shouldn't be folded unless it's all ones
since it
would affect the result.

This patch uses it to mark the pseudos for vredsum and friends, which in
turn
allows us to remove the unmasked patterns, and catch some other forms of
vmerge.




More information about the All-commits mailing list