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.
3
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
7
8declare void @free(i8*)
9
10define void @test12(i32* %foo) minsize {
11entry:
12  %tobool = icmp eq i32* %foo, null
13  br i1 %tobool, label %if.end, label %if.then
14
15if.then:                                          ; preds = %entry
16  %bitcast = bitcast i32* %foo to i8*
17  tail call void @free(i8* %bitcast)
18  br label %if.end
19
20if.end:                                           ; preds = %entry, %if.then
21  ret void
22}
23