OSDN Git Service

[InstCombine] remove redundant test
authorSanjay Patel <spatel@rotateright.com>
Fri, 14 Oct 2016 15:36:28 +0000 (15:36 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 14 Oct 2016 15:36:28 +0000 (15:36 +0000)
This test was apparently checking for 2 independent folds, but we have
plenty of tests for those individual folds already. We are lacking
vector tests, however, because we don't have the shift folds for vectors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284243 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/sub.ll

index 68f766c..540bdc9 100644 (file)
@@ -152,17 +152,6 @@ define i32 @test13(i32 %A) {
   ret i32 %C
 }
 
-define i32 @test14(i32 %A) {
-; CHECK-LABEL: @test14(
-; CHECK-NEXT:    [[D:%.*]] = ashr i32 %A, 31
-; CHECK-NEXT:    ret i32 [[D]]
-;
-  %B = lshr i32 %A, 31
-  %C = bitcast i32 %B to i32
-  %D = sub i32 0, %C
-  ret i32 %D
-}
-
 define i32 @test15(i32 %A, i32 %B) {
 ; CHECK-LABEL: @test15(
 ; CHECK-NEXT:    [[C:%.*]] = sub i32 0, %A