1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instsimplify
4 ; instsimplify pass should explicitly require DominatorTreeAnalysis
5 ; This test will segfault if DominatorTree is not available
7 target triple = "x86_64-grtev4-linux-gnu"
9 ; Function Attrs: nounwind uwtable
10 define void @foo(ptr) #1 align 2 {
11 br i1 undef, label %exit, label %2
14 %3 = tail call ptr @_Znwm(i64 56) #10
15 %p = load ptr, ptr undef, align 8
16 %4 = icmp eq ptr %p, %3
17 br i1 %4, label %exit, label %5
20 %6 = icmp eq ptr %p, null
21 br i1 %6, label %exit, label %7
30 ; Function Attrs: nobuiltin
31 declare ptr @_Znwm(i64)