Skip to content

Commit 02089e2

Browse files
committed
fixup! [Clang] Attribute NoFPClass should not prevent tail call optimization.
Improved test
1 parent 1599ddd commit 02089e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
33

4-
define dso_local noundef nofpclass(nan inf) float @_Z3foof(float noundef nofpclass(nan inf) %0) {
4+
; Ensures that taillcall optimization can still be
5+
; performed when nofpclass is used.
6+
7+
define noundef nofpclass(nan inf) float @_Z3foof(float noundef nofpclass(nan inf) %0) {
58
; CHECK-LABEL: _Z3foof:
69
; CHECK: # %bb.0:
710
; CHECK-NEXT: jmp expf@PLT # TAILCALL
8-
%2 = tail call fast float @llvm.exp.f32(float %0)
11+
%2 = tail call float @llvm.exp.f32(float %0)
912
ret float %2
1013
}

0 commit comments

Comments
 (0)