[llvm] r344577 - [hot-cold-split] fix failing testcases
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 15 17:42:08 PDT 2018
Author: spop
Date: Mon Oct 15 17:42:07 2018
New Revision: 344577
URL: http://llvm.org/viewvc/llvm-project?rev=344577&view=rev
Log:
[hot-cold-split] fix failing testcases
Modified:
llvm/trunk/test/Transforms/HotColdSplit/split-cold-2.ll
llvm/trunk/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll
Modified: llvm/trunk/test/Transforms/HotColdSplit/split-cold-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/HotColdSplit/split-cold-2.ll?rev=344577&r1=344576&r2=344577&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/HotColdSplit/split-cold-2.ll (original)
+++ llvm/trunk/test/Transforms/HotColdSplit/split-cold-2.ll Mon Oct 15 17:42:07 2018
@@ -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
Modified: llvm/trunk/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll?rev=344577&r1=344576&r2=344577&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll (original)
+++ llvm/trunk/test/Transforms/HotColdSplit/split-out-dbg-val-of-arg.ll Mon Oct 15 17:42:07 2018
@@ -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:
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, m
!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)
More information about the llvm-commits
mailing list