aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/thumb2-ifcvt3.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-06-26 04:27:33 +0000
committerBob Wilson <bob.wilson@apple.com>2010-06-26 04:27:33 +0000
commitccd9bcca14e7046b7078cdf472a9185b86cdf07d (patch)
tree9f9a66e399e80712cb1380e98ed9bfcde6d24c3b /test/CodeGen/Thumb2/thumb2-ifcvt3.ll
parent52e4a0a074b758ad3dbf6841b249aaf3baf08f28 (diff)
downloadexternal_llvm-ccd9bcca14e7046b7078cdf472a9185b86cdf07d.zip
external_llvm-ccd9bcca14e7046b7078cdf472a9185b86cdf07d.tar.gz
external_llvm-ccd9bcca14e7046b7078cdf472a9185b86cdf07d.tar.bz2
Clean up some problems with extra CFG edges being introduced during
if-conversion. The RemoveExtraEdges function doesn't work for blocks that end with unanalyzable branches, so in those cases, the "extra" edges must be explicitly removed. The CopyAndPredicateBlock and MergeBlocks methods can also avoid copying successor edges due to branches that have already been removed. The latter case is especially helpful when MergeBlocks is called for handling "diamond" if-conversions, where otherwise you can end up with some weird intermediate states in the CFG. Unfortunately I've been unable to find cases where this cleanup actually makes a significant difference in the code. There is one test where we manage to remove an empty block at the end of a function. Radar 6911268. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-ifcvt3.ll')
-rw-r--r--test/CodeGen/Thumb2/thumb2-ifcvt3.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-ifcvt3.ll b/test/CodeGen/Thumb2/thumb2-ifcvt3.ll
index e465c00..cc2ef14 100644
--- a/test/CodeGen/Thumb2/thumb2-ifcvt3.ll
+++ b/test/CodeGen/Thumb2/thumb2-ifcvt3.ll
@@ -23,7 +23,7 @@ bb52: ; preds = %newFuncRoot
; CHECK: movne
; CHECK: moveq
; CHECK: pop
-; CHECK-NEXT: LBB0_1:
+; CHECK-NEXT: @ BB#1:
%0 = load i64* @posed, align 4 ; <i64> [#uses=3]
%1 = sub i64 %0, %.reload78 ; <i64> [#uses=1]
%2 = ashr i64 %1, 1 ; <i64> [#uses=3]