[all-commits] [llvm/llvm-project] ca1f2f: [RISCV] Combine GREVI sequences

Fraser Cormack via All-commits all-commits at lists.llvm.org
Tue Nov 24 04:12:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ca1f2f2716b3f9477ced8ae5bb3b0a2a767ab439
      https://github.com/llvm/llvm-project/commit/ca1f2f2716b3f9477ced8ae5bb3b0a2a767ab439
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2020-11-24 (Tue, 24 Nov 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rv32Zbp.ll
    M llvm/test/CodeGen/RISCV/rv64Zbp.ll

  Log Message:
  -----------
  [RISCV] Combine GREVI sequences

This combine step performs the following type of transformation:

    rev.p a0, a0   # grevi a0, a0, 0b01
    rev2.n a0, a0  # grevi a0, a0, 0b10
    -->
    rev.n a0, a0   # grevi a0, a0, 0b11

Reviewed By: craig.topper

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




More information about the All-commits mailing list