reason. Two functions which mutually require each other to be nocapture
are not currently supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61553
91177308-0d34-0410-b5e6-
96231b3b80d8
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep {nocapture *%%q}
; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | not grep {nocapture *%%q}
-; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep {nocapture *%%p} | count 8
+; RUN: llvm-as < %s | opt -functionattrs | llvm-dis | grep {nocapture *%%p} | count 6
@g = global i32* null ; <i32**> [#uses=1]
define i32* @c1(i32* %q) {
@g = global i32* null ; <i32**> [#uses=1]
define i32* @c1(i32* %q) {
call void %f(i8* nocapture %p)
ret void
}
call void %f(i8* nocapture %p)
ret void
}
-
-define void @nc6(i8* %p) {
- call void @nc7(i8* %p)
- ret void
-}
-
-define void @nc7(i8* %p) {
- call void @nc6(i8* %p)
- ret void
-}