From 0cfba9c6bfce95e2ca765e7256ba1273c5a05d59 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 2 Jan 2009 03:52:27 +0000 Subject: [PATCH] Remove the cyclic part of this test, it was passing for the wrong reason. Two functions which mutually require each other to be nocapture are not currently supported. llvm-svn: 61553 --- .../Transforms/FunctionAttrs/2008-12-31-NoCapture.ll | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/llvm/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll b/llvm/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll index 758f0dd3addf..b874c824e0b4 100644 --- a/llvm/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll +++ b/llvm/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll @@ -1,5 +1,5 @@ ; 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 ; [#uses=1] define i32* @c1(i32* %q) { @@ -74,13 +74,3 @@ define void @nc5(void (i8*)* %f, i8* %p) { 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 -}