[all-commits] [llvm/llvm-project] 8fb216: [RISCV] Use DenseMap to track V0 definition. NFC (...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Mar 21 00:39:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fb2160a76b5f051f4cc8f5c8c097830bc91c22c
      https://github.com/llvm/llvm-project/commit/8fb2160a76b5f051f4cc8f5c8c097830bc91c22c
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

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

  Log Message:
  -----------
  [RISCV] Use DenseMap to track V0 definition. NFC (#84465)

Reviving some of the progress on #71764. To recap, we explored removing
the V0 register copies to simplify the pass, but hit a limitation with
the register allocator due to our use of the vmv0 singleton reg class
and early-clobber constraints.

So since we will have to continue to track the definition of V0
ourselves, this patch simplifies it by storing it in a map. It will
allow us to move about copies to V0 in #71764 without having to do extra
bookkeeping.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list