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 -instcombine -S > %t.no_dbg.ll
5 ; RUN: opt < %s -debugify-each -instcombine -S > %t.ll
6 ; RUN: diff %t.no_dbg.ll %t.ll
8 declare void @free(i8*)
10 define void @test12(i32* %foo) minsize {
12 %tobool = icmp eq i32* %foo, null
13 br i1 %tobool, label %if.end, label %if.then
15 if.then: ; preds = %entry
16 %bitcast = bitcast i32* %foo to i8*
17 tail call void @free(i8* %bitcast)
20 if.end: ; preds = %entry, %if.then