summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-02-11 12:15:41 +0000
committerJames Molloy <james.molloy@arm.com>2015-02-11 12:15:41 +0000
commit7c336576a5b90e6f6f041f521d37f780744057ce (patch)
treedb2fccab0d8fc829cf3ff8ff1f1ae3f13b1f1be7 /llvm/test/CodeGen/ARM
parenta19216c8f4b26cb98aae5ada5c44c73bd3bf350e (diff)
downloadbcm5719-llvm-7c336576a5b90e6f6f041f521d37f780744057ce.tar.gz
bcm5719-llvm-7c336576a5b90e6f6f041f521d37f780744057ce.zip
[SimplifyCFG] Swap to using TargetTransformInfo for cost
analysis. We're already using TTI in SimplifyCFG, so remove the hard-baked "cheapness" heuristic and use TTI directly. Generally NFC intended, but we're using a slightly different heuristic now so there is a slight test churn. Test changes: * combine-comparisons-by-cse.ll: Removed unneeded branch check. * 2014-08-04-muls-it.ll: Test now doesn't branch but emits muleq. * coalesce-subregs.ll: Superfluous block check. * 2008-01-02-hoist-fp-add.ll: fadd is safe to speculate. Change to udiv. * PhiBlockMerge.ll: Superfluous CFG checking code. Main checks still present. * select-gep.ll: A variable GEP is not expensive, just TCC_Basic, according to the TTI. llvm-svn: 228826
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/2014-08-04-muls-it.ll4
-rw-r--r--llvm/test/CodeGen/ARM/coalesce-subregs.ll1
2 files changed, 1 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/ARM/2014-08-04-muls-it.ll b/llvm/test/CodeGen/ARM/2014-08-04-muls-it.ll
index 4636bff880a..5ba1347433d 100644
--- a/llvm/test/CodeGen/ARM/2014-08-04-muls-it.ll
+++ b/llvm/test/CodeGen/ARM/2014-08-04-muls-it.ll
@@ -17,9 +17,7 @@ if.end: ; preds = %if.then, %entry
; CHECK-LABEL: function
; CHECK: cmp r0, r1
-; CHECK: bne [[LABEL:[.*]]]
; CHECK-NOT: mulseq r0, r0, r0
-; CHECK: [[LABEL]]
-; CHECK: muls r0, r0, r0
+; CHECK: muleq r0, r0, r0
; CHECK: bx lr
diff --git a/llvm/test/CodeGen/ARM/coalesce-subregs.ll b/llvm/test/CodeGen/ARM/coalesce-subregs.ll
index e7bd5f41bb4..e4e3315fcfd 100644
--- a/llvm/test/CodeGen/ARM/coalesce-subregs.ll
+++ b/llvm/test/CodeGen/ARM/coalesce-subregs.ll
@@ -293,7 +293,6 @@ bb:
; CHECK: adjustCopiesBackFrom
; The shuffle in if.else3 must be preserved even though adjustCopiesBackFrom
; is tempted to remove it.
-; CHECK: %if.else3
; CHECK: vorr d
define internal void @adjustCopiesBackFrom(<2 x i64>* noalias nocapture sret %agg.result, <2 x i64> %in) {
entry:
OpenPOWER on IntegriCloud