From feeeb30c3274cc0920f0a2e26924ee8792a7be98 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Dec 2004 17:14:00 +0000 Subject: [PATCH] Make this testcase a bit more challanging git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19019 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/GlobalsModRef/purecse.ll | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Analysis/GlobalsModRef/purecse.ll b/test/Analysis/GlobalsModRef/purecse.ll index f812494f1aa..bed282338d6 100644 --- a/test/Analysis/GlobalsModRef/purecse.ll +++ b/test/Analysis/GlobalsModRef/purecse.ll @@ -7,9 +7,17 @@ int %pure(int %X) { ret int %Y } -int %test(int %X) { +int %test1(int %X) { %A = call int %pure(int %X) %B = call int %pure(int %X) %C = sub int %A, %B ret int %C } + +int %test2(int %X, int* %P) { + %A = call int %pure(int %X) + store int %X, int* %P ;; Does not invalidate 'pure' call. + %B = call int %pure(int %X) + %C = sub int %A, %B + ret int %C +}