1 ; Check that the instcombine result is the same with/without debug info.
2 ; This is a regression test for a function taken from malloc-free-delete.ll.
4 ; RUN: opt < %s -passes=instcombine -S > %t.no_dbg.ll
5 ; RUN: opt < %s -debugify-each -passes=instcombine -S > %t.ll
6 ; RUN: diff %t.no_dbg.ll %t.ll
8 declare void @free(ptr)
10 define void @test12(ptr %foo) minsize {
12 %tobool = icmp eq ptr %foo, null
13 br i1 %tobool, label %if.end, label %if.then
15 if.then: ; preds = %entry
16 tail call void @free(ptr %foo)
19 if.end: ; preds = %entry, %if.then