1 ; RUN: opt -passes=dse -S < %s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 define void @test1(ptr noalias %pp) {
10 store i32 1, ptr %pp; <-- This is dead
11 %x = load i32, ptr inttoptr (i32 12345 to ptr)
14 ; CHECK-LABEL: define void @test1(
20 define void @test3() {
21 store i32 1, ptr @g; <-- This is dead.
24 ; CHECK-LABEL: define void @test3(
30 define void @test4(ptr %p) {
32 %x = load i32, ptr @g; <-- %p and @g could alias
35 ; CHECK-LABEL: define void @test4(