brintos

brintos / llvm-project-archived public Read only

0
0
Text · 542 B · d998144 Raw
19 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt -passes=newgvn -disable-output < %s3 4target triple = "x86_64-unknown-linux-gnu"5 6define i64 @foo(ptr %arrayidx) {7entry:8  %p = load ptr, ptr %arrayidx, align 89  %cmpnull = icmp eq ptr %p, null10  br label %BB211 12entry2:                                           ; No predecessors!13  br label %BB214 15BB2:                                              ; preds = %entry2, %entry16  %load = load i64, ptr %arrayidx, align 817  ret i64 %load18}19