From 5df333b2ecc4f02cfb957952d7c57dc1dcf95c68 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 16 Oct 2018 00:42:07 +0000 Subject: [PATCH] [hot-cold-split] fix failing testcases llvm-svn: 344577 --- llvm/test/Transforms/HotColdSplit/split-cold-2.ll | 2 +- .../Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/llvm/test/Transforms/HotColdSplit/split-cold-2.ll b/llvm/test/Transforms/HotColdSplit/split-cold-2.ll index e243a47..3e1a567 100644 --- a/llvm/test/Transforms/HotColdSplit/split-cold-2.ll +++ b/llvm/test/Transforms/HotColdSplit/split-cold-2.ll @@ -13,7 +13,7 @@ entry: br i1 undef, label %if.then, label %if.else if.then: - unreachable + ret void if.else: br label %if.then4 diff --git a/llvm/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll b/llvm/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll index 4b81de7..dcaff12 100644 --- a/llvm/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll +++ b/llvm/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll @@ -9,7 +9,7 @@ entry: br i1 undef, label %if.then, label %if.end, !dbg !12 if.then: ; preds = %entry - unreachable, !dbg !13 + ret void, !dbg !13 if.end: ; preds = %entry call void @llvm.dbg.value(metadata i32 %arg1, metadata !9, metadata !DIExpression()), !dbg !11 @@ -19,10 +19,16 @@ if.then12: ; preds = %if.end br label %cleanup40, !dbg !15 cleanup40: ; preds = %if.then12 - br label %return, !dbg !16 + br i1 undef, label %if.then5, label %if.end1, !dbg !16 + +if.then5: + br label %return, !dbg !17 + +if.end1: + br label %return, !dbg !18 return: ; preds = %cleanup40 - ret void, !dbg !17 + unreachable, !dbg !19 } declare void @llvm.dbg.value(metadata, metadata, metadata) @@ -49,3 +55,5 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) !15 = !DILocation(line: 5, column: 1, scope: !6) !16 = !DILocation(line: 6, column: 1, scope: !6) !17 = !DILocation(line: 7, column: 1, scope: !6) +!18 = !DILocation(line: 8, column: 1, scope: !6) +!19 = !DILocation(line: 9, column: 1, scope: !6) -- 2.7.4