1 ; RUN: opt < %s -S -passes='always-inline' -non-global-value-max-name-size=5 | opt -non-global-value-max-name-size=5 -passes=verify -disable-output
3 ; Opt should not generate too long name for labels during inlining.
5 define internal i32 @inner(i32 %flag) alwaysinline {
7 %icmp = icmp slt i32 %flag, 0
8 br i1 %icmp, label %one, label %two
17 define i32 @outer(i32 %x) {
19 %call1 = call i32 @inner(i32 %x)
20 %call2 = call i32 @inner(i32 %x)
21 %ret = add i32 %call1, %call2