[all-commits] [llvm/llvm-project] 6b5888: [AArch64] Verify ldp/stp alignment stricter (#83948)

Yuta Mukai via All-commits all-commits at lists.llvm.org
Tue Mar 5 08:47:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b5888c27f2d7cfc5fce582500a12a7eda16a7e2
      https://github.com/llvm/llvm-project/commit/6b5888c27f2d7cfc5fce582500a12a7eda16a7e2
  Author: Yuta Mukai <mukai.yuta at fujitsu.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    A llvm/test/CodeGen/AArch64/ldp-stp-unknown-size.mir

  Log Message:
  -----------
  [AArch64] Verify ldp/stp alignment stricter (#83948)

When ldp-aligned-only/stp-aligned-only is specified, modified to cancel
ldp/stp transformation if MachineMemOperand is not present or the access
size is unknown.
In the previous implementation, the test passed when there was no
MachineMemOperand. Also, if the size was unknown, an incorrect value was
used or an assertion failed. (But actually, if there is no
MachineMemOperand, it will be excluded from the target by
isCandidateToMergeOrPair() before reaching the part.)

A statistic NumFailedAlignmentCheck is added. NumPairCreated is modified
so that it only counts if it is not cancelled.



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