; RUN: opt < %s -add-discriminators -S | FileCheck %s ; RUN: opt < %s -passes=add-discriminators -S | FileCheck %s ; Discriminator support for code that is written in one line: ; #1 int foo(int i) { ; #2 if (i == 3 || i == 5) return 100; else return 99; ; #3 } ; i == 3: discriminator 0 ; i == 5: discriminator 1 ; return 100: discriminator 2 ; return 99: discriminator 3 define i32 @_Z3fooi(i32 %i) #0 !dbg !4 { %1 = alloca i32, align 4 %2 = alloca i32, align 4 store i32 %i, i32* %2, align 4, !tbaa !13 call void @llvm.dbg.declare(metadata i32* %2, metadata !9, metadata !17), !dbg !18 %3 = load i32, i32* %2, align 4, !dbg !19, !tbaa !13 %4 = icmp eq i32 %3, 3, !dbg !21 br i1 %4, label %8, label %5, !dbg !22 ;