1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/CodeGen/AArch64/no_cfi.ll
David Tellenbach 2a6ba5cdac [AArch64] [FrameLowering] Allow conditional insertion of CFI instruction
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
2019-11-22 00:27:41 +01:00

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
}