diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-26 12:33:01 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-26 12:33:01 +0000 |
commit | 7c64c5596b63856e3fe88ab60dcf64e7a46e8429 (patch) | |
tree | e5b991edde519c6de302f8eab95571c1133e59d9 /test/Transforms/Inline | |
parent | b5880a79ef68017648c18e381aa9718f3db1bbf9 (diff) | |
download | external_llvm-7c64c5596b63856e3fe88ab60dcf64e7a46e8429.zip external_llvm-7c64c5596b63856e3fe88ab60dcf64e7a46e8429.tar.gz external_llvm-7c64c5596b63856e3fe88ab60dcf64e7a46e8429.tar.bz2 |
Invert this test, because it is wrong if we allow
readonly functions to use byval parameters as local
storage (how much do we want this?).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Inline')
-rw-r--r-- | test/Transforms/Inline/byval2.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/Inline/byval2.ll b/test/Transforms/Inline/byval2.ll index e949d01..ab8c45d 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 | not grep {llvm.memcpy} +; RUN: llvm-as < %s | opt -inline | llvm-dis | grep {llvm.memcpy} -; Inlining a byval struct should NOT cause an explicit copy -; into an alloca if the function is readonly +; Inlining a byval struct should cause an explicit copy +; into an alloca even 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] |