[llvm] r278633 - [InstCombine] remove unnecessary function attributes from tests

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 14 14:48:21 PDT 2016


Author: spatel
Date: Sun Aug 14 16:48:21 2016
New Revision: 278633

URL: http://llvm.org/viewvc/llvm-project?rev=278633&view=rev
Log:
[InstCombine] remove unnecessary function attributes from tests

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

Modified: llvm/trunk/test/Transforms/InstCombine/icmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/icmp.ll?rev=278633&r1=278632&r2=278633&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/icmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/icmp.ll Sun Aug 14 16:48:21 2016
@@ -78,7 +78,7 @@ define i1 @test7(i32 %x) {
   ret i1 %b
 }
 
-define i1 @test8(i32 %x){
+define i1 @test8(i32 %x) {
 ; CHECK-LABEL: @test8(
 ; CHECK-NEXT:    ret i1 false
 ;
@@ -87,7 +87,7 @@ define i1 @test8(i32 %x){
   ret i1 %b
 }
 
-define i1 @test9(i32 %x)  {
+define i1 @test9(i32 %x) {
 ; CHECK-LABEL: @test9(
 ; CHECK-NEXT:    [[B:%.*]] = icmp ugt i32 %x, 1
 ; CHECK-NEXT:    ret i1 [[B]]
@@ -97,7 +97,7 @@ define i1 @test9(i32 %x)  {
   ret i1 %b
 }
 
-define i1 @test10(i32 %x){
+define i1 @test10(i32 %x) {
 ; CHECK-LABEL: @test10(
 ; CHECK-NEXT:    [[B:%.*]] = icmp ne i32 %x, -2147483648
 ; CHECK-NEXT:    ret i1 [[B]]
@@ -128,7 +128,7 @@ define i1 @test12(i1 %A) {
 }
 
 ; PR6481
-define i1 @test13(i8 %X) nounwind readnone {
+define i1 @test13(i8 %X) {
 ; CHECK-LABEL: @test13(
 ; CHECK-NEXT:    ret i1 false
 ;
@@ -136,7 +136,7 @@ define i1 @test13(i8 %X) nounwind readno
   ret i1 %cmp
 }
 
-define i1 @test14(i8 %X) nounwind readnone {
+define i1 @test14(i8 %X) {
 ; CHECK-LABEL: @test14(
 ; CHECK-NEXT:    ret i1 false
 ;
@@ -144,7 +144,7 @@ define i1 @test14(i8 %X) nounwind readno
   ret i1 %cmp
 }
 
-define i1 @test15() nounwind readnone {
+define i1 @test15() {
 ; CHECK-LABEL: @test15(
 ; CHECK-NEXT:    ret i1 undef
 ;
@@ -152,7 +152,7 @@ define i1 @test15() nounwind readnone {
   ret i1 %cmp
 }
 
-define i1 @test16() nounwind readnone {
+define i1 @test16() {
 ; CHECK-LABEL: @test16(
 ; CHECK-NEXT:    ret i1 undef
 ;
@@ -160,7 +160,7 @@ define i1 @test16() nounwind readnone {
   ret i1 %cmp
 }
 
-define i1 @test17(i32 %x) nounwind {
+define i1 @test17(i32 %x) {
 ; CHECK-LABEL: @test17(
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ne i32 %x, 3
 ; CHECK-NEXT:    ret i1 [[CMP]]
@@ -171,7 +171,7 @@ define i1 @test17(i32 %x) nounwind {
   ret i1 %cmp
 }
 
-define i1 @test17a(i32 %x) nounwind {
+define i1 @test17a(i32 %x) {
 ; CHECK-LABEL: @test17a(
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ugt i32 %x, 2
 ; CHECK-NEXT:    ret i1 [[CMP]]
@@ -182,7 +182,7 @@ define i1 @test17a(i32 %x) nounwind {
   ret i1 %cmp
 }
 
-define i1 @test18(i32 %x) nounwind {
+define i1 @test18(i32 %x) {
 ; CHECK-LABEL: @test18(
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ne i32 %x, 3
 ; CHECK-NEXT:    ret i1 [[CMP]]
@@ -229,7 +229,7 @@ define <2 x i1> @cmp_and_signbit_vec(<2
   ret <2 x i1> %cmp
 }
 
-define i1 @test20(i32 %x) nounwind {
+define i1 @test20(i32 %x) {
 ; CHECK-LABEL: @test20(
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp eq i32 %x, 3
 ; CHECK-NEXT:    ret i1 [[CMP]]
@@ -240,7 +240,7 @@ define i1 @test20(i32 %x) nounwind {
   ret i1 %cmp
 }
 
-define i1 @test20a(i32 %x) nounwind {
+define i1 @test20a(i32 %x) {
 ; CHECK-LABEL: @test20a(
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ult i32 %x, 3
 ; CHECK-NEXT:    ret i1 [[CMP]]
@@ -608,7 +608,7 @@ define i1 @test51(i32 %X, i32 %Y) {
   ret i1 %C
 }
 
-define i1 @test52(i32 %x1) nounwind {
+define i1 @test52(i32 %x1) {
 ; CHECK-LABEL: @test52(
 ; CHECK-NEXT:    [[TMP1:%.*]] = and i32 %x1, 16711935
 ; CHECK-NEXT:    [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 4980863
@@ -625,7 +625,7 @@ define i1 @test52(i32 %x1) nounwind {
 }
 
 ; PR9838
-define i1 @test53(i32 %a, i32 %b) nounwind {
+define i1 @test53(i32 %a, i32 %b) {
 ; CHECK-LABEL: @test53(
 ; CHECK-NEXT:    [[X:%.*]] = sdiv exact i32 %a, 30
 ; CHECK-NEXT:    [[Y:%.*]] = sdiv i32 %b, 30
@@ -638,7 +638,7 @@ define i1 @test53(i32 %a, i32 %b) nounwi
   ret i1 %z
 }
 
-define i1 @test54(i8 %a) nounwind {
+define i1 @test54(i8 %a) {
 ; CHECK-LABEL: @test54(
 ; CHECK-NEXT:    [[AND:%.*]] = and i8 %a, -64
 ; CHECK-NEXT:    [[RET:%.*]] = icmp eq i8 [[AND]], -128
@@ -730,13 +730,13 @@ define zeroext i1 @cmpabs2(i64 %val) {
   ret i1 %tobool
 }
 
-define void @test58() nounwind {
+define void @test58() {
 ; CHECK-LABEL: @test58(
-; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 36029346783166592) #1
+; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 36029346783166592)
 ; CHECK-NEXT:    ret void
 ;
   %cast = bitcast <1 x i64> <i64 36029346783166592> to i64
-  %call = call i32 @test58_d( i64 %cast) nounwind
+  %call = call i32 @test58_d( i64 %cast)
   ret void
 }
 declare i32 @test58_d(i64)
@@ -745,7 +745,7 @@ define i1 @test59(i8* %foo) {
 ; CHECK-LABEL: @test59(
 ; CHECK-NEXT:    [[GEP1:%.*]] = getelementptr inbounds i8, i8* %foo, i64 8
 ; CHECK-NEXT:    [[USE:%.*]] = ptrtoint i8* [[GEP1]] to i64
-; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 [[USE]]) #1
+; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 [[USE]])
 ; CHECK-NEXT:    ret i1 true
 ;
   %bit = bitcast i8* %foo to i32*
@@ -754,7 +754,7 @@ define i1 @test59(i8* %foo) {
   %cast1 = bitcast i32* %gep1 to i8*
   %cmp = icmp ult i8* %cast1, %gep2
   %use = ptrtoint i8* %cast1 to i64
-  %call = call i32 @test58_d(i64 %use) nounwind
+  %call = call i32 @test58_d(i64 %use)
   ret i1 %cmp
 }
 
@@ -763,7 +763,7 @@ define i1 @test59_as1(i8 addrspace(1)* %
 ; CHECK-NEXT:    [[GEP1:%.*]] = getelementptr inbounds i8, i8 addrspace(1)* %foo, i16 8
 ; CHECK-NEXT:    [[TMP1:%.*]] = ptrtoint i8 addrspace(1)* [[GEP1]] to i16
 ; CHECK-NEXT:    [[USE:%.*]] = zext i16 [[TMP1]] to i64
-; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 [[USE]]) #1
+; CHECK-NEXT:    [[CALL:%.*]] = call i32 @test58_d(i64 [[USE]])
 ; CHECK-NEXT:    ret i1 true
 ;
   %bit = bitcast i8 addrspace(1)* %foo to i32 addrspace(1)*
@@ -772,7 +772,7 @@ define i1 @test59_as1(i8 addrspace(1)* %
   %cast1 = bitcast i32 addrspace(1)* %gep1 to i8 addrspace(1)*
   %cmp = icmp ult i8 addrspace(1)* %cast1, %gep2
   %use = ptrtoint i8 addrspace(1)* %cast1 to i64
-  %call = call i32 @test58_d(i64 %use) nounwind
+  %call = call i32 @test58_d(i64 %use)
   ret i1 %cmp
 }
 
@@ -908,7 +908,7 @@ define i1 @test62_as1(i8 addrspace(1)* %
   ret i1 %cmp
 }
 
-define i1 @test63(i8 %a, i32 %b) nounwind {
+define i1 @test63(i8 %a, i32 %b) {
 ; CHECK-LABEL: @test63(
 ; CHECK-NEXT:    [[TMP1:%.*]] = trunc i32 %b to i8
 ; CHECK-NEXT:    [[C:%.*]] = icmp eq i8 [[TMP1]], %a
@@ -920,7 +920,7 @@ define i1 @test63(i8 %a, i32 %b) nounwin
   ret i1 %c
 }
 
-define i1 @test64(i8 %a, i32 %b) nounwind {
+define i1 @test64(i8 %a, i32 %b) {
 ; CHECK-LABEL: @test64(
 ; CHECK-NEXT:    [[TMP1:%.*]] = trunc i32 %b to i8
 ; CHECK-NEXT:    [[C:%.*]] = icmp eq i8 [[TMP1]], %a
@@ -952,7 +952,7 @@ define i1 @test66(i64 %A, i64 %B) {
   ret i1 %cmp
 }
 
-define i1 @test67(i32 %x) nounwind uwtable {
+define i1 @test67(i32 %x) {
 ; CHECK-LABEL: @test67(
 ; CHECK-NEXT:    [[AND:%.*]] = and i32 %x, 96
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ne i32 [[AND]], 0
@@ -963,7 +963,7 @@ define i1 @test67(i32 %x) nounwind uwtab
   ret i1 %cmp
 }
 
-define i1 @test68(i32 %x) nounwind uwtable {
+define i1 @test68(i32 %x) {
 ; CHECK-LABEL: @test68(
 ; CHECK-NEXT:    [[AND:%.*]] = and i32 %x, 127
 ; CHECK-NEXT:    [[CMP:%.*]] = icmp ugt i32 [[AND]], 30
@@ -975,7 +975,7 @@ define i1 @test68(i32 %x) nounwind uwtab
 }
 
 ; PR14708
-define i1 @test69(i32 %c) nounwind uwtable {
+define i1 @test69(i32 %c) {
 ; CHECK-LABEL: @test69(
 ; CHECK-NEXT:    [[TMP1:%.*]] = or i32 %c, 32
 ; CHECK-NEXT:    [[TMP2:%.*]] = icmp eq i32 [[TMP1]], 97
@@ -1698,7 +1698,7 @@ end:
   ret i1 %res
 }
 
-define i1 @icmp_lshr_lshr_eq(i32 %a, i32 %b) nounwind {
+define i1 @icmp_lshr_lshr_eq(i32 %a, i32 %b) {
 ; CHECK-LABEL: @icmp_lshr_lshr_eq(
 ; CHECK-NEXT:    [[Z_UNSHIFTED:%.*]] = xor i32 %a, %b
 ; CHECK-NEXT:    [[Z:%.*]] = icmp ult i32 [[Z:%.*]].unshifted, 1073741824
@@ -1710,7 +1710,7 @@ define i1 @icmp_lshr_lshr_eq(i32 %a, i32
   ret i1 %z
 }
 
-define i1 @icmp_ashr_ashr_ne(i32 %a, i32 %b) nounwind {
+define i1 @icmp_ashr_ashr_ne(i32 %a, i32 %b) {
 ; CHECK-LABEL: @icmp_ashr_ashr_ne(
 ; CHECK-NEXT:    [[Z_UNSHIFTED:%.*]] = xor i32 %a, %b
 ; CHECK-NEXT:    [[Z:%.*]] = icmp ugt i32 [[Z:%.*]].unshifted, 255




More information about the llvm-commits mailing list