• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -basicaa -gvn -S | grep load
2
3declare noalias i32* @noalias()
4
5define i32 @test(i32 %x) {
6  %a = call i32* @noalias()
7  store i32 1, i32* %a
8  %b = getelementptr i32* %a, i32 %x
9  store i32 2, i32* %b
10
11  %c = load i32* %a
12  ret i32 %c
13}
14