[all-commits] [llvm/llvm-project] 2e5648: [RISCV] Use getVectorIdxConstant in RISCVISelLower...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Feb 26 18:34:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e564840e08d28fec9035aacc7a2d28106ed8606
      https://github.com/llvm/llvm-project/commit/2e564840e08d28fec9035aacc7a2d28106ed8606
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

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

  Log Message:
  -----------
  [RISCV] Use getVectorIdxConstant in RISCVISelLowering.cpp. NFC (#83019)

We use getVectorIdxConstant() in some places and getConstant(XLenVT) or
getIntPtrConstant() in others, but getVectorIdxTy() == getPointerTy() ==
XLenVT.

This refactors RISCVISelLowering to use the former for nodes that use
getVectorIdxTy(), i.e. INSERT_SUBVECTOR, EXTRACT_SUBVECTOR,
INSERT_VECTOR_ELT and EXTRACT_VECTOR_ELT, so that we're consistent.



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