[llvm] b861e27 - [X86] pr45995.ll - add nounwind to silence cfi noise
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 5 08:37:10 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-05T16:36:35+01:00
New Revision: b861e2736aa90467ec2e42225946e242590d3a29
URL: https://github.com/llvm/llvm-project/commit/b861e2736aa90467ec2e42225946e242590d3a29
DIFF: https://github.com/llvm/llvm-project/commit/b861e2736aa90467ec2e42225946e242590d3a29.diff
LOG: [X86] pr45995.ll - add nounwind to silence cfi noise
Added:
Modified:
llvm/test/CodeGen/X86/pr45995.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/pr45995.ll b/llvm/test/CodeGen/X86/pr45995.ll
index f9a9ab768f1a0a..997ad6be84b9d1 100644
--- a/llvm/test/CodeGen/X86/pr45995.ll
+++ b/llvm/test/CodeGen/X86/pr45995.ll
@@ -1,18 +1,12 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -O3 --x86-asm-syntax=intel -mtriple=x86_64 -mattr=avx < %s | FileCheck %s
-define void @extracter0([4 x <4 x i1>] %matrix) {
+define void @extracter0([4 x <4 x i1>] %matrix) nounwind {
; CHECK-LABEL: extracter0:
; CHECK: # %bb.0:
; CHECK-NEXT: push rbp
-; CHECK-NEXT: .cfi_def_cfa_offset 16
; CHECK-NEXT: push r14
-; CHECK-NEXT: .cfi_def_cfa_offset 24
; CHECK-NEXT: push rbx
-; CHECK-NEXT: .cfi_def_cfa_offset 32
-; CHECK-NEXT: .cfi_offset rbx, -32
-; CHECK-NEXT: .cfi_offset r14, -24
-; CHECK-NEXT: .cfi_offset rbp, -16
; CHECK-NEXT: vpslld xmm0, xmm0, 31
; CHECK-NEXT: vmovmskps edi, xmm0
; CHECK-NEXT: mov ebx, edi
@@ -31,11 +25,8 @@ define void @extracter0([4 x <4 x i1>] %matrix) {
; CHECK-NEXT: movzx edi, bl
; CHECK-NEXT: call print_i1 at PLT
; CHECK-NEXT: pop rbx
-; CHECK-NEXT: .cfi_def_cfa_offset 24
; CHECK-NEXT: pop r14
-; CHECK-NEXT: .cfi_def_cfa_offset 16
; CHECK-NEXT: pop rbp
-; CHECK-NEXT: .cfi_def_cfa_offset 8
; CHECK-NEXT: ret
%1 = extractvalue [4 x <4 x i1>] %matrix, 0
%2 = extractelement <4 x i1> %1, i64 0
@@ -49,29 +40,16 @@ define void @extracter0([4 x <4 x i1>] %matrix) {
ret void
}
-define void @extracter1([4 x <4 x i1>] %matrix) {
+define void @extracter1([4 x <4 x i1>] %matrix) nounwind {
; CHECK-LABEL: extracter1:
; CHECK: # %bb.0:
; CHECK-NEXT: push rbp
-; CHECK-NEXT: .cfi_def_cfa_offset 16
; CHECK-NEXT: push r15
-; CHECK-NEXT: .cfi_def_cfa_offset 24
; CHECK-NEXT: push r14
-; CHECK-NEXT: .cfi_def_cfa_offset 32
; CHECK-NEXT: push r13
-; CHECK-NEXT: .cfi_def_cfa_offset 40
; CHECK-NEXT: push r12
-; CHECK-NEXT: .cfi_def_cfa_offset 48
; CHECK-NEXT: push rbx
-; CHECK-NEXT: .cfi_def_cfa_offset 56
; CHECK-NEXT: push rax
-; CHECK-NEXT: .cfi_def_cfa_offset 64
-; CHECK-NEXT: .cfi_offset rbx, -56
-; CHECK-NEXT: .cfi_offset r12, -48
-; CHECK-NEXT: .cfi_offset r13, -40
-; CHECK-NEXT: .cfi_offset r14, -32
-; CHECK-NEXT: .cfi_offset r15, -24
-; CHECK-NEXT: .cfi_offset rbp, -16
; CHECK-NEXT: vpslld xmm1, xmm1, 31
; CHECK-NEXT: vmovmskps ebx, xmm1
; CHECK-NEXT: mov eax, ebx
@@ -109,19 +87,12 @@ define void @extracter1([4 x <4 x i1>] %matrix) {
; CHECK-NEXT: movzx edi, byte ptr [rsp + 7] # 1-byte Folded Reload
; CHECK-NEXT: call print_i1 at PLT
; CHECK-NEXT: add rsp, 8
-; CHECK-NEXT: .cfi_def_cfa_offset 56
; CHECK-NEXT: pop rbx
-; CHECK-NEXT: .cfi_def_cfa_offset 48
; CHECK-NEXT: pop r12
-; CHECK-NEXT: .cfi_def_cfa_offset 40
; CHECK-NEXT: pop r13
-; CHECK-NEXT: .cfi_def_cfa_offset 32
; CHECK-NEXT: pop r14
-; CHECK-NEXT: .cfi_def_cfa_offset 24
; CHECK-NEXT: pop r15
-; CHECK-NEXT: .cfi_def_cfa_offset 16
; CHECK-NEXT: pop rbp
-; CHECK-NEXT: .cfi_def_cfa_offset 8
; CHECK-NEXT: ret
%1 = extractvalue [4 x <4 x i1>] %matrix, 0
%2 = extractelement <4 x i1> %1, i64 0
More information about the llvm-commits
mailing list