[all-commits] [llvm/llvm-project] 4bad0c: [AArch64] Precommit tests for PR75343, NFC

Allen via All-commits all-commits at lists.llvm.org
Thu Dec 21 02:56:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bad0cb359d3066fb29f589e408a5b812a628896
      https://github.com/llvm/llvm-project/commit/4bad0cb359d3066fb29f589e408a5b812a628896
  Author: zhongyunde 00443407 <zhongyunde at huawei.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/test/CodeGen/AArch64/arm64-addrmode.ll
    A llvm/test/CodeGen/AArch64/large-offset-ldr-merge.mir

  Log Message:
  -----------
  [AArch64] Precommit tests for PR75343, NFC


  Commit: 32878c2065c8005b3ea30c79e16dfd7eed55d645
      https://github.com/llvm/llvm-project/commit/32878c2065c8005b3ea30c79e16dfd7eed55d645
  Author: zhongyunde 00443407 <zhongyunde at huawei.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/lib/Target/AArch64/AArch64InstrInfo.h
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    M llvm/test/CodeGen/AArch64/arm64-addrmode.ll
    M llvm/test/CodeGen/AArch64/large-offset-ldr-merge.mir

  Log Message:
  -----------
  [AArch64] merge index address with large offset into base address

A case for this transformation, https://gcc.godbolt.org/z/nhYcWq1WE
Fold
  mov     w8, #56952
  movk    w8, #15, lsl #16
  ldrb    w0, [x0, x8]
into
  add     x0, x0, 1036288
  ldrb    w0, [x0, 3704]

Only LDRBBroX is supported for the first time.
Fix https://github.com/llvm/llvm-project/issues/71917


  Commit: f5687636415969e6d945659a0b78734abdfb0f06
      https://github.com/llvm/llvm-project/commit/f5687636415969e6d945659a0b78734abdfb0f06
  Author: zhongyunde 00443407 <zhongyunde at huawei.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    M llvm/test/CodeGen/AArch64/arm64-addrmode.ll

  Log Message:
  -----------
  [AArch64] Fold more load.x into load.i with large offset

The list of load.x is refer to canFoldIntoAddrMode on D152828.
Also support LDRSroX missed in canFoldIntoAddrMode


Compare: https://github.com/llvm/llvm-project/compare/18af032c0e16...f56876364159


More information about the All-commits mailing list