1 ; RUN: opt < %s -basicaa -gvn -S | FileCheck %s
4 declare void @test1f(i8*)
6 define void @test1(%t* noalias %stuff ) {
7 %p = getelementptr inbounds %t, %t* %stuff, i32 0, i32 0
8 %before = load i32, i32* %p
10 call void @test1f(i8* null)
12 %after = load i32, i32* %p ; <--- This should be a dead load
13 %sum = add i32 %before, %after
15 store i32 %sum, i32* %p