From 55b9f88ecc4420abf728c0563c6791d35972240f Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sat, 15 Jul 2017 15:29:47 +0000 Subject: [InstCombine] allow (0 - x) & 1 --> x & 1 for vectors llvm-svn: 308098 --- llvm/test/Transforms/InstCombine/and2.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/test/Transforms') diff --git a/llvm/test/Transforms/InstCombine/and2.ll b/llvm/test/Transforms/InstCombine/and2.ll index 001ac58891e..9b3bbfe4920 100644 --- a/llvm/test/Transforms/InstCombine/and2.ll +++ b/llvm/test/Transforms/InstCombine/and2.ll @@ -98,8 +98,7 @@ define i64 @test9(i64 %x) { ; combine -x & 1 into x & 1 define <2 x i64> @test9vec(<2 x i64> %x) { ; CHECK-LABEL: @test9vec( -; CHECK-NEXT: [[SUB:%.*]] = sub nsw <2 x i64> zeroinitializer, [[X:%.*]] -; CHECK-NEXT: [[AND:%.*]] = and <2 x i64> [[SUB]], +; CHECK-NEXT: [[AND:%.*]] = and <2 x i64> %x, ; CHECK-NEXT: ret <2 x i64> [[AND]] ; %sub = sub nsw <2 x i64> , %x -- cgit v1.2.3