[all-commits] [llvm/llvm-project] ac51cf: [RISCV] Refactor RISCV::hasAllWUsers to hasAllNBit...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Dec 28 12:49:39 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac51cf19604630919f54131ba1d9e3d9443f715c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-28 (Wed, 28 Dec 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    M llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
    M llvm/lib/Target/RISCV/RISCVStripWSuffix.cpp

  Log Message:
  [RISCV] Refactor RISCV::hasAllWUsers to hasAllNBitUsers similar to RISCVISelDAGToDAG's version. NFC

Move to RISCVInstrInfo since we need RISCVSubtarget now.

Instead of asking if only the lower 32 bits are used we can now
ask if the lower N bits are used. This will be needed by a future

More information about the All-commits mailing list