diff options
| author | Sebastian Pop <sebpop@gmail.com> | 2018-10-16 00:42:07 +0000 |
|---|---|---|
| committer | Sebastian Pop <sebpop@gmail.com> | 2018-10-16 00:42:07 +0000 |
| commit | 5df333b2ecc4f02cfb957952d7c57dc1dcf95c68 (patch) | |
| tree | 08379500be14ec4815cc5e5a65d1e910a5e8e2a9 | |
| parent | 950b8e114e89e0b6594fc52ead37942b54a6ffc2 (diff) | |
| download | bcm5719-llvm-5df333b2ecc4f02cfb957952d7c57dc1dcf95c68.tar.gz bcm5719-llvm-5df333b2ecc4f02cfb957952d7c57dc1dcf95c68.zip | |
[hot-cold-split] fix failing testcases
llvm-svn: 344577
| -rw-r--r-- | llvm/test/Transforms/HotColdSplit/split-cold-2.ll | 2 | ||||
| -rw-r--r-- | llvm/test/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 e243a47623a..3e1a567113a 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 4b81de7b35b..dcaff122442 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) |

