[all-commits] [llvm/llvm-project] d0554a: [RISCV] Select vl op to X0 when it is equal to ~0.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Mon Jan 10 18:58:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0554ae4cf264dd05024a753c66e15e4d16bf6e8
      https://github.com/llvm/llvm-project/commit/d0554ae4cf264dd05024a753c66e15e4d16bf6e8
  Author: jacquesguan <jacquesguan at me.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll

  Log Message:
  -----------
  [RISCV] Select vl op to X0 when it is equal to ~0.

Now the backend will select ~0 vl to a register and load instruction, we could use X0 to replace it.

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




More information about the All-commits mailing list