[llvm] r278705 - remove unnecessary IR comments about uses

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 11:32:51 PDT 2016


Author: spatel
Date: Mon Aug 15 13:32:50 2016
New Revision: 278705

URL: http://llvm.org/viewvc/llvm-project?rev=278705&view=rev
Log:
remove unnecessary IR comments about uses

Modified:
    llvm/trunk/test/Transforms/InstCombine/shift.ll

Modified: llvm/trunk/test/Transforms/InstCombine/shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/shift.ll?rev=278705&r1=278704&r2=278705&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/shift.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/shift.ll Mon Aug 15 13:32:50 2016
@@ -7,7 +7,7 @@ define i32 @test1(i32 %A) {
 ; CHECK-LABEL: @test1(
 ; CHECK-NEXT:    ret i32 %A
 ;
-  %B = shl i32 %A, 0              ; <i32> [#uses=1]
+  %B = shl i32 %A, 0
   ret i32 %B
 }
 
@@ -15,8 +15,8 @@ define i32 @test2(i8 %A) {
 ; CHECK-LABEL: @test2(
 ; CHECK-NEXT:    ret i32 0
 ;
-  %shift.upgrd.1 = zext i8 %A to i32              ; <i32> [#uses=1]
-  %B = shl i32 0, %shift.upgrd.1          ; <i32> [#uses=1]
+  %shift.upgrd.1 = zext i8 %A to i32
+  %B = shl i32 0, %shift.upgrd.1
   ret i32 %B
 }
 
@@ -24,7 +24,7 @@ define i32 @test3(i32 %A) {
 ; CHECK-LABEL: @test3(
 ; CHECK-NEXT:    ret i32 %A
 ;
-  %B = ashr i32 %A, 0             ; <i32> [#uses=1]
+  %B = ashr i32 %A, 0
   ret i32 %B
 }
 
@@ -32,12 +32,11 @@ define i32 @test4(i8 %A) {
 ; CHECK-LABEL: @test4(
 ; CHECK-NEXT:    ret i32 0
 ;
-  %shift.upgrd.2 = zext i8 %A to i32              ; <i32> [#uses=1]
-  %B = ashr i32 0, %shift.upgrd.2         ; <i32> [#uses=1]
+  %shift.upgrd.2 = zext i8 %A to i32
+  %B = ashr i32 0, %shift.upgrd.2
   ret i32 %B
 }
 
-
 define i32 @test5(i32 %A) {
 ; CHECK-LABEL: @test5(
 ; CHECK-NEXT:    ret i32 undef
@@ -146,8 +145,8 @@ define i8 @test8(i8 %A) {
 ; CHECK-LABEL: @test8(
 ; CHECK-NEXT:    ret i8 0
 ;
-  %B = shl i8 %A, 5               ; <i8> [#uses=1]
-  %C = shl i8 %B, 3               ; <i8> [#uses=1]
+  %B = shl i8 %A, 5
+  %C = shl i8 %B, 3
   ret i8 %C
 }
 
@@ -157,8 +156,8 @@ define i8 @test9(i8 %A) {
 ; CHECK-NEXT:    [[B:%.*]] = and i8 %A, 1
 ; CHECK-NEXT:    ret i8 [[B]]
 ;
-  %B = shl i8 %A, 7               ; <i8> [#uses=1]
-  %C = lshr i8 %B, 7              ; <i8> [#uses=1]
+  %B = shl i8 %A, 7
+  %C = lshr i8 %B, 7
   ret i8 %C
 }
 
@@ -170,8 +169,8 @@ define i8 @test10(i8 %A) {
 ; CHECK-NEXT:    [[B:%.*]] = and i8 %A, -128
 ; CHECK-NEXT:    ret i8 [[B]]
 ;
-  %B = lshr i8 %A, 7              ; <i8> [#uses=1]
-  %C = shl i8 %B, 7               ; <i8> [#uses=1]
+  %B = lshr i8 %A, 7
+  %C = shl i8 %B, 7
   ret i8 %C
 }
 
@@ -195,9 +194,9 @@ define i8 @test11(i8 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = shl i8 [[B]], 4
 ; CHECK-NEXT:    ret i8 [[C]]
 ;
-  %a = mul i8 %A, 3               ; <i8> [#uses=1]
-  %B = lshr i8 %a, 3              ; <i8> [#uses=1]
-  %C = shl i8 %B, 4               ; <i8> [#uses=1]
+  %a = mul i8 %A, 3
+  %B = lshr i8 %a, 3
+  %C = shl i8 %B, 4
   ret i8 %C
 }
 
@@ -220,8 +219,8 @@ define i32 @test12(i32 %A) {
 ; CHECK-NEXT:    [[B1:%.*]] = and i32 %A, -256
 ; CHECK-NEXT:    ret i32 [[B1]]
 ;
-  %B = ashr i32 %A, 8             ; <i32> [#uses=1]
-  %C = shl i32 %B, 8              ; <i32> [#uses=1]
+  %B = ashr i32 %A, 8
+  %C = shl i32 %B, 8
   ret i32 %C
 }
 
@@ -235,9 +234,9 @@ define i8 @test13(i8 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = shl i8 [[B1]], 4
 ; CHECK-NEXT:    ret i8 [[C]]
 ;
-  %a = mul i8 %A, 3               ; <i8> [#uses=1]
-  %B = ashr i8 %a, 3              ; <i8> [#uses=1]
-  %C = shl i8 %B, 4               ; <i8> [#uses=1]
+  %a = mul i8 %A, 3
+  %B = ashr i8 %a, 3
+  %C = shl i8 %B, 4
   ret i8 %C
 }
 
@@ -259,9 +258,9 @@ define i32 @test14(i32 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = or i32 [[B]], 19744
 ; CHECK-NEXT:    ret i32 [[C]]
 ;
-  %B = lshr i32 %A, 4             ; <i32> [#uses=1]
-  %C = or i32 %B, 1234            ; <i32> [#uses=1]
-  %D = shl i32 %C, 4              ; <i32> [#uses=1]
+  %B = lshr i32 %A, 4
+  %C = or i32 %B, 1234
+  %D = shl i32 %C, 4
   ret i32 %D
 }
 
@@ -271,9 +270,9 @@ define i32 @test14a(i32 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = and i32 %A, 77
 ; CHECK-NEXT:    ret i32 [[C]]
 ;
-  %B = shl i32 %A, 4              ; <i32> [#uses=1]
-  %C = and i32 %B, 1234           ; <i32> [#uses=1]
-  %D = lshr i32 %C, 4             ; <i32> [#uses=1]
+  %B = shl i32 %A, 4
+  %C = and i32 %B, 1234
+  %D = lshr i32 %C, 4
   ret i32 %D
 }
 
@@ -282,8 +281,8 @@ define i32 @test15(i1 %C) {
 ; CHECK-NEXT:    [[A:%.*]] = select i1 %C, i32 12, i32 4
 ; CHECK-NEXT:    ret i32 [[A]]
 ;
-  %A = select i1 %C, i32 3, i32 1         ; <i32> [#uses=1]
-  %V = shl i32 %A, 2              ; <i32> [#uses=1]
+  %A = select i1 %C, i32 3, i32 1
+  %V = shl i32 %A, 2
   ret i32 %V
 }
 
@@ -292,9 +291,9 @@ define i32 @test15a(i1 %C) {
 ; CHECK-NEXT:    [[V:%.*]] = select i1 %C, i32 512, i32 128
 ; CHECK-NEXT:    ret i32 [[V]]
 ;
-  %A = select i1 %C, i8 3, i8 1           ; <i8> [#uses=1]
-  %shift.upgrd.4 = zext i8 %A to i32              ; <i32> [#uses=1]
-  %V = shl i32 64, %shift.upgrd.4         ; <i32> [#uses=1]
+  %A = select i1 %C, i8 3, i8 1
+  %shift.upgrd.4 = zext i8 %A to i32
+  %V = shl i32 64, %shift.upgrd.4
   ret i32 %V
 }
 
@@ -316,8 +315,8 @@ define i1 @test17(i32 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = icmp eq i32 [[B_MASK]], 9872
 ; CHECK-NEXT:    ret i1 [[C]]
 ;
-  %B = lshr i32 %A, 3             ; <i32> [#uses=1]
-  %C = icmp eq i32 %B, 1234               ; <i1> [#uses=1]
+  %B = lshr i32 %A, 3
+  %C = icmp eq i32 %B, 1234
   ret i1 %C
 }
 
@@ -337,9 +336,9 @@ define i1 @test18(i8 %A) {
 ; CHECK-LABEL: @test18(
 ; CHECK-NEXT:    ret i1 false
 ;
-  %B = lshr i8 %A, 7              ; <i8> [#uses=1]
+  %B = lshr i8 %A, 7
   ;; false
-  %C = icmp eq i8 %B, 123         ; <i1> [#uses=1]
+  %C = icmp eq i8 %B, 123
   ret i1 %C
 }
 
@@ -348,9 +347,9 @@ define i1 @test19(i32 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = icmp ult i32 %A, 4
 ; CHECK-NEXT:    ret i1 [[C]]
 ;
-  %B = ashr i32 %A, 2             ; <i32> [#uses=1]
+  %B = ashr i32 %A, 2
   ;; (X & -4) == 0
-  %C = icmp eq i32 %B, 0          ; <i1> [#uses=1]
+  %C = icmp eq i32 %B, 0
   ret i1 %C
 }
 
@@ -393,9 +392,9 @@ define i1 @test20(i8 %A) {
 ; CHECK-LABEL: @test20(
 ; CHECK-NEXT:    ret i1 false
 ;
-  %B = ashr i8 %A, 7              ; <i8> [#uses=1]
+  %B = ashr i8 %A, 7
   ;; false
-  %C = icmp eq i8 %B, 123         ; <i1> [#uses=1]
+  %C = icmp eq i8 %B, 123
   ret i1 %C
 }
 
@@ -405,8 +404,8 @@ define i1 @test21(i8 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = icmp eq i8 [[B_MASK]], 8
 ; CHECK-NEXT:    ret i1 [[C]]
 ;
-  %B = shl i8 %A, 4               ; <i8> [#uses=1]
-  %C = icmp eq i8 %B, -128                ; <i1> [#uses=1]
+  %B = shl i8 %A, 4
+  %C = icmp eq i8 %B, -128
   ret i1 %C
 }
 
@@ -416,8 +415,8 @@ define i1 @test22(i8 %A) {
 ; CHECK-NEXT:    [[C:%.*]] = icmp eq i8 [[B_MASK]], 0
 ; CHECK-NEXT:    ret i1 [[C]]
 ;
-  %B = shl i8 %A, 4               ; <i8> [#uses=1]
-  %C = icmp eq i8 %B, 0           ; <i1> [#uses=1]
+  %B = shl i8 %A, 4
+  %C = icmp eq i8 %B, 0
   ret i1 %C
 }
 
@@ -427,9 +426,9 @@ define i8 @test23(i32 %A) {
 ; CHECK-NEXT:    ret i8 [[D]]
 ;
   ;; casts not needed
-  %B = shl i32 %A, 24             ; <i32> [#uses=1]
-  %C = ashr i32 %B, 24            ; <i32> [#uses=1]
-  %D = trunc i32 %C to i8         ; <i8> [#uses=1]
+  %B = shl i32 %A, 24
+  %C = ashr i32 %B, 24
+  %D = trunc i32 %C to i8
   ret i8 %D
 }
 
@@ -438,9 +437,9 @@ define i8 @test24(i8 %X) {
 ; CHECK-NEXT:    [[Z:%.*]] = and i8 %X, 3
 ; CHECK-NEXT:    ret i8 [[Z]]
 ;
-  %Y = and i8 %X, -5              ; <i8> [#uses=1]
-  %Z = shl i8 %Y, 5               ; <i8> [#uses=1]
-  %Q = ashr i8 %Z, 5              ; <i8> [#uses=1]
+  %Y = and i8 %X, -5
+  %Z = shl i8 %Y, 5
+  %Q = ashr i8 %Z, 5
   ret i8 %Q
 }
 
@@ -451,10 +450,10 @@ define i32 @test25(i32 %tmp.2, i32 %AA)
 ; CHECK-NEXT:    [[TMP_6:%.*]] = and i32 [[X2]], -131072
 ; CHECK-NEXT:    ret i32 [[TMP_6]]
 ;
-  %x = lshr i32 %AA, 17           ; <i32> [#uses=1]
-  %tmp.3 = lshr i32 %tmp.2, 17            ; <i32> [#uses=1]
-  %tmp.5 = add i32 %tmp.3, %x             ; <i32> [#uses=1]
-  %tmp.6 = shl i32 %tmp.5, 17             ; <i32> [#uses=1]
+  %x = lshr i32 %AA, 17
+  %tmp.3 = lshr i32 %tmp.2, 17
+  %tmp.5 = add i32 %tmp.3, %x
+  %tmp.6 = shl i32 %tmp.5, 17
   ret i32 %tmp.6
 }
 
@@ -479,9 +478,9 @@ define i32 @test26(i32 %A) {
 ; CHECK-NEXT:    [[B:%.*]] = and i32 %A, -2
 ; CHECK-NEXT:    ret i32 [[B]]
 ;
-  %B = lshr i32 %A, 1             ; <i32> [#uses=1]
-  %C = bitcast i32 %B to i32              ; <i32> [#uses=1]
-  %D = shl i32 %C, 1              ; <i32> [#uses=1]
+  %B = lshr i32 %A, 1
+  %C = bitcast i32 %B to i32
+  %D = shl i32 %C, 1
   ret i32 %D
 }
 




More information about the llvm-commits mailing list