From c76d0d6d37054fef520aa2832c18480c472b3137 Mon Sep 17 00:00:00 2001 From: Hideto Ueno Date: Sun, 28 Jul 2019 06:09:56 +0000 Subject: [PATCH] [FunctionAttrs] Annotate "willreturn" for intrinsics Summary: In D62801, new function attribute `willreturn` was introduced. In short, a function with `willreturn` is guaranteed to come back to the call site(more precise definition is in LangRef). In this patch, willreturn is annotated for LLVM intrinsics. Reviewers: jdoerfert Reviewed By: jdoerfert Subscribers: jvesely, nhaehnle, sstefan1, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64904 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367184 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/libcalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CodeGen/libcalls.c b/test/CodeGen/libcalls.c index 1b314f777b..699dc78eac 100644 --- a/test/CodeGen/libcalls.c +++ b/test/CodeGen/libcalls.c @@ -124,4 +124,4 @@ void test_builtins(double d, float f, long double ld) { } // CHECK-NO-DAG: attributes [[NUW_RN]] = { nounwind readnone{{.*}} } -// CHECK-NO-DAG: attributes [[NUW_RNI]] = { nounwind readnone speculatable } +// CHECK-NO-DAG: attributes [[NUW_RNI]] = { nounwind readnone speculatable willreturn } -- 2.40.0