1 ; RUN: opt %s -basicaa -dse -S | FileCheck %s
7 define void @test1(%t* noalias %pp) {
8 %p = getelementptr inbounds %t* %pp, i32 0, i32 0
10 store i32 1, i32* %p; <-- This is dead
11 %x = load i32* inttoptr (i32 12345 to i32*)
14 ; CHECK: define void @test1
20 define void @test3() {
21 store i32 1, i32* @g; <-- This is dead.
24 ; CHECK: define void @test3
30 define void @test4(i32* %p) {
32 %x = load i32* @g; <-- %p and @g could alias
35 ; CHECK: define void @test4