[all-commits] [llvm/llvm-project] c6c2b8: [AArch64] Fix invalid address-mode folding (#142167)

Dudeldu via All-commits all-commits at lists.llvm.org
Tue Jun 3 00:23:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6c2b81e90e43d125d36c1d3ebddb5a713a11df7
      https://github.com/llvm/llvm-project/commit/c6c2b81e90e43d125d36c1d3ebddb5a713a11df7
  Author: Dudeldu <mustermann.informatik at gmail.com>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    A llvm/test/CodeGen/AArch64/fuse-addr-mode.mir

  Log Message:
  -----------
  [AArch64] Fix invalid address-mode folding (#142167)

In some cases, we are too aggressive when folding an add-lsl into an
ldr/str due to an accidental truncation of the 64-bit scale to 32-bit.
In cases where we shift by more than 31 bits (which is valid for 64-bit
registers) we just drop the shift...



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