[all-commits] [llvm/llvm-project] 14ea54: [RISCV][InsertVSETVLI] Generalize scalar move rule...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Dec 7 10:28:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14ea545a7d16dad1d26c8ba7f817a1b3d33d4132
      https://github.com/llvm/llvm-project/commit/14ea545a7d16dad1d26c8ba7f817a1b3d33d4132
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

  Log Message:
  -----------
  [RISCV][InsertVSETVLI] Generalize scalar move rule for when AVL is unchanged

By definition, the AVL of the scalar move is equally zero to the prior AVL if they are the same value.  This generalizes the existing code to the case where the scalar move has a register AVL which is unknown, but unchanged from the preceeding instruction.

This doesn't cause any interesting diffs on its own, but another patch makes this case much more common.  Split off to reduce a future diff.




More information about the All-commits mailing list