[all-commits] [llvm/llvm-project] e0ff35: [AArch64] Async unwind - Adjust unwind info in AAr...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Mon Apr 18 04:11:38 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0ff354b837656b2bb4f550b347a750d7b1a8984
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2022-04-18 (Mon, 18 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    M llvm/test/CodeGen/AArch64/arm64-fp128.ll
    M llvm/test/CodeGen/AArch64/fcopysign.ll
    M llvm/test/CodeGen/AArch64/swifttail-call.ll
    M llvm/test/CodeGen/AArch64/tail-call.ll

  Log Message:
  [AArch64] Async unwind - Adjust unwind info in AArch64LoadStoreOptimizer

[Re-commit after fixing a dereference of "end" iterator]

The AArch64LoadStoreOptimnizer pass may merge a register
increment/decrement with a following memory operation. In doing so, it
may break CFI by moving a stack pointer adjustment past the CFI
instruction that described *that* adjustment.

This patch fixes this issue by moving said CFI instruction after the
merged instruction, where the SP increment/decrement actually takes

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D114547

More information about the All-commits mailing list