From 6cd07b45e172b457428b291fa28252e507a7c50c Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 12 Nov 2015 09:05:43 +0000 Subject: Revert "[FunctionAttrs] Identify norecurse functions" This reverts commit r252862. This introduced test failures and I'm reverting while I investigate how this happened. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252863 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/Analysis/TypeBasedAliasAnalysis') diff --git a/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll b/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll index 44031417032..6c9439afeea 100644 --- a/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll +++ b/test/Analysis/TypeBasedAliasAnalysis/functionattrs.ll @@ -30,7 +30,7 @@ define void @test1_yes(i32* %p) nounwind { ret void } -; CHECK: define void @test1_no(i32* %p) #3 { +; CHECK: define void @test1_no(i32* %p) #1 { define void @test1_no(i32* %p) nounwind { call void @callee(i32* %p), !tbaa !2 ret void @@ -72,11 +72,9 @@ define i32 @test3_no(i8* %p) nounwind { declare void @callee(i32* %p) nounwind declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1) nounwind -; CHECK: attributes #0 = { norecurse nounwind readnone } -; CHECK: attributes #1 = { norecurse nounwind } +; CHECK: attributes #0 = { nounwind readnone } +; CHECK: attributes #1 = { nounwind } ; CHECK: attributes #2 = { nounwind readonly } -; CHECK: attributes #3 = { nounwind } -; CHECK: attributes #4 = { nounwind argmemonly } ; Root note. !0 = !{ } -- cgit v1.2.3