[all-commits] [llvm/llvm-project] 524545: [RISCV] Remove RISCVISD::BREV8 and use RISCVISD::G...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jan 29 22:55:16 PST 2022


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/lib/Target/RISCV/RISCVInstrInfoZb.td

  Log Message:
  -----------
  [RISCV] Remove RISCVISD::BREV8 and use RISCVISD::GREV instead.

We already have an ISD opcode for the more general GREV/GREVI
instructon. We can just use it with the encoding that corresponds
to the behavior of brev8. This is similar to what we do for orc.b
where we use the GORC ISD opcode.




More information about the All-commits mailing list