summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-05-05 15:39:18 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-05-05 15:39:18 +0000
commit25cfb7dbd640391f6f55dd6423aa82258209e45f (patch)
tree116d13f7de312aa1b6e2ee729abe77c3a78f5fbf /llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll
parente57662d5ec3a50e77fc35d8e25d7442cb3af6474 (diff)
downloadbcm5719-llvm-25cfb7dbd640391f6f55dd6423aa82258209e45f.tar.gz
bcm5719-llvm-25cfb7dbd640391f6f55dd6423aa82258209e45f.zip
[ValueTracking] Improve isImpliedCondition for matching LHS and Imm RHSs.
llvm-svn: 268636
Diffstat (limited to 'llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll b/llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll
index 59b4c953ee9..1f8e0efa067 100644
--- a/llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll
+++ b/llvm/test/CodeGen/AArch64/combine-comparisons-by-cse.ll
@@ -405,11 +405,11 @@ return: ; preds = %land.lhs.true, %con
define void @cmp_shifted(i32 %in, i32 %lhs, i32 %rhs) {
; CHECK-LABEL: cmp_shifted:
-; CHECK: cmp w0, #1
-; [...]
; CHECK: cmp w0, #2, lsl #12
+; [...]
+; CHECK: cmp w0, #1
- %tst_low = icmp sgt i32 %in, 0
+ %tst_low = icmp sgt i32 %in, 8191
br i1 %tst_low, label %true, label %false
true:
@@ -417,7 +417,7 @@ true:
ret void
false:
- %tst = icmp sgt i32 %in, 8191
+ %tst = icmp sgt i32 %in, 0
br i1 %tst, label %truer, label %falser
truer:
OpenPOWER on IntegriCloud