Teach BasicAA about noalias function parameters. Passes all of DejaGNU and test-suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Christopher Lamb
2007-07-31 07:04:51 +00:00
parent 66ca0bc73a
commit 50192c2152
2 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
; RUN: llvm-as %s -o - | opt -aa-eval -print-may-aliases -disable-output |& grep '1 may alias'
; RUN: llvm-as %s -o - | opt -aa-eval -print-may-aliases -disable-output |& grep '5 no alias'
; RUN: llvm-as %s -o - | opt -aa-eval -print-may-aliases -disable-output |& grep 'MayAlias: i32* %ptr4, i32* %ptr2'
define void @_Z3fooPiS_RiS_(i32* noalias %ptr1, i32* %ptr2, i32* noalias %ptr3, i32* %ptr4) {
entry:
store i32 0, i32* %ptr1
store i32 0, i32* %ptr2
store i32 0, i32* %ptr3
store i32 0, i32* %ptr4
ret void
}