brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · b9c8f5d Raw
32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -passes=instsimplify3 4; instsimplify pass should explicitly require DominatorTreeAnalysis5; This test will segfault if DominatorTree is not available6 7target triple = "x86_64-grtev4-linux-gnu"8 9; Function Attrs: nounwind uwtable10define void @foo(ptr, i1 %arg) #1 align 2 {11  br i1 %arg, label %exit, label %212 13; <label>:2:14  %3 = tail call ptr @_Znwm(i64 56) #1015  %p = load ptr, ptr undef, align 816  %4 = icmp eq ptr %p, %317  br i1 %4, label %exit, label %518 19; <label>:6:20  %6 = icmp eq ptr %p, null21  br i1 %6, label %exit, label %722 23; <label>:8:24  br label %exit25 26exit:27  ret void28}29 30; Function Attrs: nobuiltin31declare ptr @_Znwm(i64)32