[all-commits] [llvm/llvm-project] 09648b: [GlobalISel] [AArch64] Extend SelectShiftMask to h...

Deepak Shirke via All-commits all-commits at lists.llvm.org
Sat Oct 3 00:22:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09648b667cbdef23b270bca1f7f33e5620f70cb9
      https://github.com/llvm/llvm-project/commit/09648b667cbdef23b270bca1f7f33e5620f70cb9
  Author: Deepak Shirke <deepakshirke509 at gmail.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:

  Log Message:
  -----------
  [GlobalISel] [AArch64] Extend SelectShiftMask to handle ADD/SUB mod patterns (#225842)

AArch64 shift instructions only use the low log2(ShiftWidth) bits of the
shift amount, so shifting by X+N where N == 0 mod ShiftWidth is
equivalent to shifting by X alone.

This extends both SelectionDAG (SelectShiftMask) and GlobalISel
(selectShiftMask) implementations.

Part of the incremental work tracked in #224245 to replace
tryShiftAmountMod with ComplexPattern-based isel.

Depends on #223136.



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