[all-commits] [llvm/llvm-project] 279953: [RISCV] Simplify code in decomposeMulByConstant. N...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jul 28 19:30:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 279953f1da7d7d0e404638414deec5d1df291c7c
      https://github.com/llvm/llvm-project/commit/279953f1da7d7d0e404638414deec5d1df291c7c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-07-28 (Sun, 28 Jul 2024)

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

  Log Message:
  -----------
  [RISCV] Simplify code in decomposeMulByConstant. NFC (#100946)

We already checked that the type is a scalar integer, so the constant
node should definitely be a ConstantSDNode. We can use cast instead of
dyn_cast.



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