[all-commits] [llvm/llvm-project] 6f5932: [RISCV] Add a policy operand to VPseudoBinaryNoMas...

Philip Reames via All-commits all-commits at lists.llvm.org
Fri Jun 16 16:47:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f5932eb96798277702fc42ab8d9ce853cf35f57
      https://github.com/llvm/llvm-project/commit/6f5932eb96798277702fc42ab8d9ce853cf35f57
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-06-16 (Fri, 16 Jun 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

  Log Message:
  -----------
  [RISCV] Add a policy operand to VPseudoBinaryNoMaskTU [NFC]

This change adds a policy operand to the helper class which is used for binary ops like vadd, but also, possibly surprisingly, some of the vslide variants. This allows us to represent the tail agnostic state with this pseudo family - previously, we could only represent tail undefined and tail undisturbed. (Since these don't have a mask, they're always mask undefined.)

This is NFC because no current producer uses the tail agnostic state. This will change in an upcoming change to doPeepholeMaskedRVV.

Differential Revision: https://reviews.llvm.org/D153067




More information about the All-commits mailing list