summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/HotColdSplit/split-cold-1.ll
diff options
context:
space:
mode:
authorSebastian Pop <sebpop@gmail.com>2018-09-14 20:36:19 +0000
committerSebastian Pop <sebpop@gmail.com>2018-09-14 20:36:19 +0000
commit0f30f08b02e5fc426004dad9c379ad1a260797cb (patch)
tree992e40ba8ca22982655eec85453828477e87305f /llvm/test/Transforms/HotColdSplit/split-cold-1.ll
parent3abcf690745a47c181d26425ae096924812eb305 (diff)
downloadbcm5719-llvm-0f30f08b02e5fc426004dad9c379ad1a260797cb.tar.gz
bcm5719-llvm-0f30f08b02e5fc426004dad9c379ad1a260797cb.zip
HotColdSplit: fix invalid SSA due to outlining
The test used to fail with an invalid phi node: the two predecessors were outlined and the SSA representation was left invalid. The patch adds the exit block to the cold region. llvm-svn: 342277
Diffstat (limited to 'llvm/test/Transforms/HotColdSplit/split-cold-1.ll')
-rw-r--r--llvm/test/Transforms/HotColdSplit/split-cold-1.ll10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/test/Transforms/HotColdSplit/split-cold-1.ll b/llvm/test/Transforms/HotColdSplit/split-cold-1.ll
index c8948bcf1dd..fdb3eb003c6 100644
--- a/llvm/test/Transforms/HotColdSplit/split-cold-1.ll
+++ b/llvm/test/Transforms/HotColdSplit/split-cold-1.ll
@@ -1,15 +1,9 @@
; RUN: opt -hotcoldsplit -S < %s | FileCheck %s
-source_filename = "bugpoint-output-054409e.bc"
-target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-apple-macosx10.13.0"
-
-declare i32 @__gxx_personality_v0(...)
; Outlined function is called from a basic block named codeRepl
; CHECK: codeRepl:
; CHECK-NEXT: call void @foo
-; Function Attrs: ssp uwtable
-define hidden void @foo() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
+define void @foo() {
entry:
br i1 undef, label %if.then, label %if.end
@@ -28,5 +22,3 @@ cleanup40: ; preds = %if.then12
return: ; preds = %cleanup40
ret void
}
-
-
OpenPOWER on IntegriCloud