[all-commits] [llvm/llvm-project] ed8045: [RISCV][test] Precommit tests for VSETVLI insertio...

Jianjian Guan via All-commits all-commits at lists.llvm.org
Mon Aug 2 21:08:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed804588341e933cfc7783eb8776a258ba1fb264
      https://github.com/llvm/llvm-project/commit/ed804588341e933cfc7783eb8776a258ba1fb264
  Author: jacquesguan <jacquesguan at me.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    A llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll

  Log Message:
  -----------
  [RISCV][test] Precommit tests for VSETVLI insertion improvement (D106857).

Reviewed By: craig.topper

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


  Commit: 7900ee0b61ae4f251d59832c424bd0b1d46194d5
      https://github.com/llvm/llvm-project/commit/7900ee0b61ae4f251d59832c424bd0b1d46194d5
  Author: jacquesguan <jacquesguan at me.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

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

  Log Message:
  -----------
  [RISCV] Teach VSETVLI insertion to merge the unused VSETVLI with the one need to be insert after it.

If a vsetvli instruction is not compatible with the next vector instruction,
and there is no other things that may update or use VL/VTYPE, we could merge
it with the next vsetvli instruction that should be insert for the vector
instruction.

This commit only merge VTYPE with the former vsetvli instruction which has
the same VL.

Reviewed By: craig.topper

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


Compare: https://github.com/llvm/llvm-project/compare/0023caf952e5...7900ee0b61ae


More information about the All-commits mailing list