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* %stuff, i32 0, i32 0
10 call void @test1f(i8* null)
12 %after = load i32* %p ; <--- This should be a dead load
13 %sum = add i32 %before, %after
15 store i32 %sum, i32* %p