[all-commits] [llvm/llvm-project] 85db4f: [RISCV] Minor tablegen formatting cleanup. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Oct 1 16:42:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85db4f10e3d65c813d9086f77c1eb65a8abeaf72
      https://github.com/llvm/llvm-project/commit/85db4f10e3d65c813d9086f77c1eb65a8abeaf72
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-10-01 (Sat, 01 Oct 2022)

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

  Log Message:
  -----------
  [RISCV] Minor tablegen formatting cleanup. NFC


  Commit: 5bbc5eb55f0fbb508aeeab8d86a5051f5ac1849f
      https://github.com/llvm/llvm-project/commit/5bbc5eb55f0fbb508aeeab8d86a5051f5ac1849f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-10-01 (Sat, 01 Oct 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vwadd.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vwaddu.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vwsub.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vwsubu.ll
    M llvm/test/CodeGen/RISCV/rvv/vwadd-sdnode.ll
    M llvm/test/CodeGen/RISCV/rvv/vwsub-sdnode.ll

  Log Message:
  -----------
  [RISCV] Use _TIED form of VWADD(U)_WX/VWSUB(U)_WX to avoid early clobber.

One of the sources is the same size as the destination so that source
doesn't have an overlap with the destination register. By using the _TIED
form we avoid an early clobber contraint for that source.

This matches what was already done for instrinsics. ConvertToThreeAddress
will fix it if it can't stay tied.


Compare: https://github.com/llvm/llvm-project/compare/1837333dac94...5bbc5eb55f0f


More information about the All-commits mailing list