diff options
author | Jakub Staszak <jstaszak@apple.com> | 2011-08-03 22:34:43 +0000 |
---|---|---|
committer | Jakub Staszak <jstaszak@apple.com> | 2011-08-03 22:34:43 +0000 |
commit | 990f78d53bfe3cf2c82147bc34b457b01e651f25 (patch) | |
tree | 9f30e2b28859e7fb63e1aa7867a41ed5f2bc1a14 /test/CodeGen/ARM | |
parent | 2626dba9c5515d2e534c117bb16ceb03dd4d0930 (diff) | |
download | external_llvm-990f78d53bfe3cf2c82147bc34b457b01e651f25.zip external_llvm-990f78d53bfe3cf2c82147bc34b457b01e651f25.tar.gz external_llvm-990f78d53bfe3cf2c82147bc34b457b01e651f25.tar.bz2 |
Use MachineBranchProbabilityInfo in If-Conversion instead of its own heuristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r-- | test/CodeGen/ARM/ifcvt4.ll | 10 | ||||
-rw-r--r-- | test/CodeGen/ARM/indirectbr.ll | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/test/CodeGen/ARM/ifcvt4.ll b/test/CodeGen/ARM/ifcvt4.ll index f28c61b..d099f51 100644 --- a/test/CodeGen/ARM/ifcvt4.ll +++ b/test/CodeGen/ARM/ifcvt4.ll @@ -1,8 +1,10 @@ -; RUN: llc < %s -march=arm -; RUN: llc < %s -march=arm | grep subgt | count 1 -; RUN: llc < %s -march=arm | grep suble | count 1 -; FIXME: Check for # of unconditional branch after adding branch folding post ifcvt. +; RUN: llc < %s -march=arm | FileCheck %s +; Do not if-convert when branches go to the different loops. +; CHECK: _t: +; CHECK-NOT: subgt +; CHECK-NOT: suble +; Don't use define i32 @t(i32 %a, i32 %b) { entry: %tmp1434 = icmp eq i32 %a, %b ; <i1> [#uses=1] diff --git a/test/CodeGen/ARM/indirectbr.ll b/test/CodeGen/ARM/indirectbr.ll index 25a0f93..341c33f 100644 --- a/test/CodeGen/ARM/indirectbr.ll +++ b/test/CodeGen/ARM/indirectbr.ll @@ -22,7 +22,6 @@ bb2: ; preds = %entry, %bb3 %gotovar.4.0 = phi i8* [ %gotovar.4.0.pre, %bb3 ], [ %0, %entry ] ; <i8*> [#uses=1] ; ARM: bx ; THUMB: mov pc, -; THUMB2: mov pc, indirectbr i8* %gotovar.4.0, [label %L5, label %L4, label %L3, label %L2, label %L1] bb3: ; preds = %entry |