summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-21 16:28:22 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-21 16:28:22 +0000
commit7e09f13fed6fa16e71f4a24c1531e825ede54d32 (patch)
treed10c39831aab90dd6ae001895f81e03444c36440 /llvm/test/Transforms
parent67e7e224623b1d756cd037207a6b191a67775ff5 (diff)
downloadbcm5719-llvm-7e09f13fed6fa16e71f4a24c1531e825ede54d32.tar.gz
bcm5719-llvm-7e09f13fed6fa16e71f4a24c1531e825ede54d32.zip
[InstCombine] use m_APInt to allow icmp (shl X, Y), C folds for splat constant vectors, part 2
This is a partial enablement (move the ConstantInt guard down). llvm-svn: 279398
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstCombine/icmp.ll4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll
index e1b58393f79..f8f28d65b84 100644
--- a/llvm/test/Transforms/InstCombine/icmp.ll
+++ b/llvm/test/Transforms/InstCombine/icmp.ll
@@ -1160,11 +1160,9 @@ define i1 @icmp_shl_nsw_sge1(i32 %x) {
ret i1 %cmp
}
-; FIXME: Vectors should fold the same way.
define <2 x i1> @icmp_shl_nsw_sge1_vec(<2 x i32> %x) {
; CHECK-LABEL: @icmp_shl_nsw_sge1_vec(
-; CHECK-NEXT: [[SHL:%.*]] = shl nsw <2 x i32> %x, <i32 21, i32 21>
-; CHECK-NEXT: [[CMP:%.*]] = icmp sgt <2 x i32> [[SHL]], zeroinitializer
+; CHECK-NEXT: [[CMP:%.*]] = icmp sgt <2 x i32> %x, zeroinitializer
; CHECK-NEXT: ret <2 x i1> [[CMP]]
;
%shl = shl nsw <2 x i32> %x, <i32 21, i32 21>
OpenPOWER on IntegriCloud