1 ; RUN: opt -passes=gvn -disable-output < %s
3 target triple = "x86_64-unknown-linux-gnu"
5 define i64 @foo(ptr %arrayidx) {
7 %p = load ptr, ptr %arrayidx, align 8
8 %cmpnull = icmp eq ptr %p, null
11 entry2: ; No predecessors!
14 BB2: ; preds = %entry2, %entry
15 %load = load i64, ptr %arrayidx, align 8