From d82375c1c43db7f823dd4660d3495e76566699e3 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 27 Jan 2008 18:12:58 +0000 Subject: Revert r46393: readonly/readnone functions are no longer allowed to write through byval arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46416 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/Inline/byval2.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/Transforms/Inline/byval2.ll b/test/Transforms/Inline/byval2.ll index ab8c45d376..e949d01856 100644 --- a/test/Transforms/Inline/byval2.ll +++ b/test/Transforms/Inline/byval2.ll @@ -1,7 +1,7 @@ -; RUN: llvm-as < %s | opt -inline | llvm-dis | grep {llvm.memcpy} +; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep {llvm.memcpy} -; Inlining a byval struct should cause an explicit copy -; into an alloca even if the function is readonly +; Inlining a byval struct should NOT cause an explicit copy +; into an alloca if the function is readonly %struct.ss = type { i32, i64 } @.str = internal constant [10 x i8] c"%d, %lld\0A\00" ; <[10 x i8]*> [#uses=1] -- cgit v1.2.3