aboutsummaryrefslogtreecommitdiff
path: root/test/DebugInfo/check-debugify-preserves-analyses.ll
blob: 08195da75e853d5d0bb95be6b79f137f4c94ad9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -globals-aa -functionattrs | \
; RUN:   opt -S -strip -strip-dead-prototypes -strip-named-metadata > %t.no_dbg

; RUN: opt < %s -debugify-each -globals-aa -functionattrs | \
; RUN:   opt -S -strip -strip-dead-prototypes -strip-named-metadata > %t.with_dbg

; RUN: diff %t.no_dbg %t.with_dbg

define i32 @f_1(i32 %x) {
  %tmp = call i32 @f_1(i32 0) [ "deopt"() ]
  ret i32 0
}