1 ; RUN: opt -basicaa -dse -S < %s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 define void @test1(%t* noalias %pp) {
9 %p = getelementptr inbounds %t, %t* %pp, i32 0, i32 0
11 store i32 1, i32* %p; <-- This is dead
12 %x = load i32, i32* inttoptr (i32 12345 to i32*)
15 ; CHECK-LABEL: define void @test1(
21 define void @test3() {
22 store i32 1, i32* @g; <-- This is dead.
25 ; CHECK-LABEL: define void @test3(
31 define void @test4(i32* %p) {
33 %x = load i32, i32* @g; <-- %p and @g could alias
36 ; CHECK-LABEL: define void @test4(