1 ; RUN: opt < %s -passes=gvn -S | FileCheck %s
4 declare void @test1f(ptr)
6 define void @test1(ptr noalias %stuff ) {
7 %before = load i32, ptr %stuff
9 call void @test1f(ptr null)
11 %after = load i32, ptr %stuff ; <--- This should be a dead load
12 %sum = add i32 %before, %after
14 store i32 %sum, ptr %stuff