[all-commits] [llvm/llvm-project] 45e85f: [RISCV] Pull APInt/computeKnonwbits specifics out ...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 28 21:01:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45e85feba6e49a4d3257b78f1a50f94b3c79a492
      https://github.com/llvm/llvm-project/commit/45e85feba6e49a4d3257b78f1a50f94b3c79a492
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-28 (Mon, 28 Mar 2022)

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

  Log Message:
  -----------
  [RISCV] Pull APInt/computeKnonwbits specifics out of computeGREVOrGORC. NFC

This function now takes a uint64_t instead of an APInt. The caller
is responsible for masking the shift amount, extracting and inserting
into the KnownBits APInts, and inverting to compute zeros.

This is less code and cleaner division of responsibilities.




More information about the All-commits mailing list