mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
2a6ba5cdac
Summary: The insertion of most CFI instructions during AArch64 frame lowering can be disabled (e.g. using the function attribute `nounwind`). This patch enables conditional insertion for one more CFI instruction. Reviewers: t.p.northover, ostannard Reviewed By: ostannard Subscribers: kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70129
14 lines
362 B
LLVM
14 lines
362 B
LLVM
; RUN: llc -mtriple aarch64-arm-linux-gnu -o - %s | FileCheck %s
|
|
|
|
; CHECK: a: // @a
|
|
; CHECK-NEXT: // %bb.0:
|
|
; CHECK-NEXT: sub sp, sp, #16
|
|
; CHECK-NOT: .cfi{{.*}}
|
|
; CHECK: ret
|
|
define void @a() nounwind {
|
|
%1 = alloca i32, align 4
|
|
store i32 1, i32* %1, align 4
|
|
ret void
|
|
}
|
|
|