summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2015-12-21 22:00:51 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2015-12-21 22:00:51 +0000
commita23e5f7516cabf2fc42148687cebf454ba3f5388 (patch)
tree6979e72a6cd26d39f3807f1c01987e6d02bf7f46 /llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
parentab361efee7c5641cd214cf64d0f3ef3c48ba21b8 (diff)
downloadbcm5719-llvm-a23e5f7516cabf2fc42148687cebf454ba3f5388.tar.gz
bcm5719-llvm-a23e5f7516cabf2fc42148687cebf454ba3f5388.zip
Enhance BranchProbabilityInfo::calcUnreachableHeuristics for InvokeInst
This is recommit of r256028 with minor fixes in unittests: CodeGen/Mips/eh.ll CodeGen/Mips/insn-zero-size-bb.ll Original commit message: When identifying blocks post-dominated by an unreachable-terminated block in BranchProbabilityInfo, consider only the edge to the normal destination block if the terminator is InvokeInst and let calcInvokeHeuristics() decide edge weights for the InvokeInst. llvm-svn: 256202
Diffstat (limited to 'llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll')
-rw-r--r--llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll b/llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
index 5405d570b15..7ad10330317 100644
--- a/llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
+++ b/llvm/test/CodeGen/X86/catchret-empty-fallthrough.ll
@@ -34,12 +34,14 @@ return: ; preds = %catch, %entry
; CHECK-LABEL: foo: # @foo
; CHECK: testb $1, %cl
-; CHECK: jne .LBB0_[[return:[0-9]+]]
+; CHECK: je .LBB0_[[try:[0-9]+]]
+; CHECK: .LBB0_[[return:[0-9]+]]:
+; CHECK: retq
+; CHECK: .LBB0_[[try]]:
; CHECK: .Ltmp0:
; CHECK: callq bar
; CHECK: .Ltmp1:
; CHECK: .LBB0_[[catch:[0-9]+]]:
-; CHECK: .LBB0_[[return]]:
; CHECK: .seh_handlerdata
; CHECK-NEXT: .Lfoo$parent_frame_offset = 32
OpenPOWER on IntegriCloud