[all-commits] [llvm/llvm-project] b0ffaa: [AArch64] Prevent the AArch64LoadStoreOptimizer fr...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Tue Sep 10 05:07:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0ffaa79050460d724eec1b12363c439b43d5ae5
      https://github.com/llvm/llvm-project/commit/b0ffaa79050460d724eec1b12363c439b43d5ae5
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2024-09-10 (Tue, 10 Sep 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    M llvm/test/CodeGen/AArch64/build-one-lane.ll
    M llvm/test/CodeGen/AArch64/insertextract.ll
    A llvm/test/CodeGen/AArch64/no-reorder-cfi-merge-back-load.mir
    A llvm/test/CodeGen/AArch64/no-reorder-cfi-merge-back-store.mir
    A llvm/test/CodeGen/AArch64/no-reorder-cfi-merge-fwd-load.mir
    A llvm/test/CodeGen/AArch64/no-reorder-cfi-merge-fwd.mir
    A llvm/test/CodeGen/AArch64/no-reorder-cfi-no-merge.mir
    A llvm/test/CodeGen/AArch64/no-reorder-cfi.ll
    M llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-bit-counting.ll
    M llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-insert-vector-elt.ll
    M llvm/test/CodeGen/AArch64/vector-compress.ll

  Log Message:
  -----------
  [AArch64] Prevent the AArch64LoadStoreOptimizer from reordering CFI instructions (#101317)

When AArch64LoadStoreOptimizer pass merges an SP update with a
load/store instruction and needs to adjust unwind information either:
* create the merged instruction at the location of the SP update
  (so no CFI  instructions are moved), or
* only move a CFI instruction if the move would not reorder it across
  other CFI  instructions

If neither of the above is possible, don't perform the optimisation.



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