llvm.org GIT mirror llvm / release_21 test / Analysis / BasicAA / 2007-08-01-NoAliasAndCalls.ll
release_21

Tree @release_21 (Download .tar.gz)

2007-08-01-NoAliasAndCalls.ll @release_21raw · history · blame

; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output &| grep 'MayAlias:     i32* %y, i32* %x'

declare i32* @unclear(i32* %a)

define void @foo(i32* noalias %x) {
  %y = call i32* @unclear(i32* %x)
  store i32 0, i32* %x
  store i32 0, i32* %y
  ret void
}