[all-commits] [llvm/llvm-project] c65d6c: [SelectionDAG] Return std::optional<unsigned> from...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Aug 31 11:29:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c65d6cb0a1f2dad03c8f11891b5bacb51180c490
      https://github.com/llvm/llvm-project/commit/c65d6cb0a1f2dad03c8f11891b5bacb51180c490
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-08-31 (Sun, 31 Aug 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [SelectionDAG] Return std::optional<unsigned> from getValidShiftAmount and friends. NFC (#156224)

Instead of std::optional<uint64_t>. Shift amounts must be less than or
equal to our maximum supported bit widths which fit in unsigned. Most of
the callers already assumed it fit in unsigned.



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