1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt -passes=newgvn -disable-output < %s
4 target triple = "x86_64-unknown-linux-gnu"
6 define i64 @foo(ptr %arrayidx) {
8 %p = load ptr, ptr %arrayidx, align 8
9 %cmpnull = icmp eq ptr %p, null
12 entry2: ; No predecessors!
15 BB2: ; preds = %entry2, %entry
16 %load = load i64, ptr %arrayidx, align 8