[all-commits] [llvm/llvm-project] 36d831: [RISCV] Reduce duplicate code for calling Simplify...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Aug 19 07:18:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36d8316cc8b6ab85d0d3ed46a04490afa5e49a29
      https://github.com/llvm/llvm-project/commit/36d8316cc8b6ab85d0d3ed46a04490afa5e49a29
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

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

  Log Message:
  -----------
  [RISCV] Reduce duplicate code for calling SimplifyDemandedBits.

This encapsulates the APInt creation and worklist management into
a helper function.

To keep one common interface I've use Log2_32 in places that
previously created a mask by subtracting 1 from a power of 2.

Differential Revision: https://reviews.llvm.org/D108324


  Commit: c60a4c1ba5980754f78765120c1ae88e1fe3cb32
      https://github.com/llvm/llvm-project/commit/c60a4c1ba5980754f78765120c1ae88e1fe3cb32
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp

  Log Message:
  -----------
  [TypePromotion] Use Instruction* instead of Value* for a couple functions. NFC

This matches how they are called and allows some isa/cast/dyn_cast
to be removed.

Differential Revision: https://reviews.llvm.org/D108333


Compare: https://github.com/llvm/llvm-project/compare/765a4212764d...c60a4c1ba598


More information about the All-commits mailing list