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

Momchil Velikov via All-commits all-commits at lists.llvm.org
Wed Apr 13 09:25:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecbf32dd88fc91b4fe709dc14bb3493dda6e8854
      https://github.com/llvm/llvm-project/commit/ecbf32dd88fc91b4fe709dc14bb3493dda6e8854
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2022-04-13 (Wed, 13 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

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
place.

Reviewed By: efriedma

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




More information about the All-commits mailing list