summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@anl.gov>2019-10-13 05:27:09 +0000
committerJohannes Doerfert <jdoerfert@anl.gov>2019-10-13 05:27:09 +0000
commit4056e7f02a407971ef837bb2eff4724cfd475c4d (patch)
treebe034726e06b9cfaf998f0cc98af2e044950348f /llvm/test/Transforms/FunctionAttrs
parent4868841ee4ff9a32ce1021ef3335e81e19b4f354 (diff)
downloadbcm5719-llvm-4056e7f02a407971ef837bb2eff4724cfd475c4d.tar.gz
bcm5719-llvm-4056e7f02a407971ef837bb2eff4724cfd475c4d.zip
[Attributor][FIX] Avoid splitting blocks if possible
Before, we eagerly split blocks even if it was not necessary, e.g., they had a single unreachable instruction and only a single predecessor. llvm-svn: 374703
Diffstat (limited to 'llvm/test/Transforms/FunctionAttrs')
-rw-r--r--llvm/test/Transforms/FunctionAttrs/liveness.ll4
-rw-r--r--llvm/test/Transforms/FunctionAttrs/noreturn_async.ll8
-rw-r--r--llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll4
3 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Transforms/FunctionAttrs/liveness.ll b/llvm/test/Transforms/FunctionAttrs/liveness.ll
index b75887efb8f..b6a4900d2af 100644
--- a/llvm/test/Transforms/FunctionAttrs/liveness.ll
+++ b/llvm/test/Transforms/FunctionAttrs/liveness.ll
@@ -177,7 +177,7 @@ cond.true: ; preds = %entry
%call = invoke i32 @foo_noreturn() to label %continue
unwind label %cleanup
; CHECK: %call = invoke i32 @foo_noreturn()
- ; CHECK-NEXT: to label %continue.dead unwind label %cleanup
+ ; CHECK-NEXT: to label %continue unwind label %cleanup
cond.false: ; preds = %entry
call void @normal_call()
@@ -189,7 +189,7 @@ cond.end: ; preds = %cond.false, %contin
ret i32 %cond
continue:
- ; CHECK: continue.dead:
+ ; CHECK: continue:
; CHECK-NEXT: unreachable
br label %cond.end
diff --git a/llvm/test/Transforms/FunctionAttrs/noreturn_async.ll b/llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
index e9e423688df..e06a13f40c5 100644
--- a/llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
+++ b/llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
@@ -42,12 +42,12 @@ entry:
%retval = alloca i32, align 4
%__exception_code = alloca i32, align 4
; CHECK: invoke void @"?overflow@@YAXXZ"()
-; CHECK: to label %invoke.cont.dead unwind label %catch.dispatch
+; CHECK: to label %invoke.cont unwind label %catch.dispatch
invoke void @"?overflow@@YAXXZ"()
to label %invoke.cont unwind label %catch.dispatch
invoke.cont: ; preds = %entry
-; CHECK: invoke.cont.dead:
+; CHECK: invoke.cont:
; CHECK-NEXT: unreachable
br label %invoke.cont1
@@ -101,12 +101,12 @@ entry:
%retval = alloca i32, align 4
%__exception_code = alloca i32, align 4
; CHECK: invoke void @"?overflow@@YAXXZ_may_throw"()
-; CHECK: to label %invoke.cont.dead unwind label %catch.dispatch
+; CHECK: to label %invoke.cont unwind label %catch.dispatch
invoke void @"?overflow@@YAXXZ_may_throw"()
to label %invoke.cont unwind label %catch.dispatch
invoke.cont: ; preds = %entry
-; CHECK: invoke.cont.dead:
+; CHECK: invoke.cont:
; CHECK-NEXT: unreachable
br label %invoke.cont1
diff --git a/llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll b/llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll
index 5d644965fb2..423a369f704 100644
--- a/llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll
+++ b/llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll
@@ -97,12 +97,12 @@ entry:
%retval = alloca i32, align 4
%__exception_code = alloca i32, align 4
; CHECK: invoke void @"?overflow@@YAXXZ_may_throw"()
-; CHECK: to label %invoke.cont.dead unwind label %catch.dispatch
+; CHECK: to label %invoke.cont unwind label %catch.dispatch
invoke void @"?overflow@@YAXXZ_may_throw"()
to label %invoke.cont unwind label %catch.dispatch
invoke.cont: ; preds = %entry
-; CHECK: invoke.cont.dead:
+; CHECK: invoke.cont:
; CHECK-NEXT: unreachable
br label %invoke.cont1
OpenPOWER on IntegriCloud