[llvm] 35c6d56 - [InstCombine] rename tmp values to avoid scripted FileCheck conflicts; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 14:02:59 PDT 2020


Author: Sanjay Patel
Date: 2020-09-04T17:02:18-04:00
New Revision: 35c6d56c0437f79b0f472b22e7353727a433881c

URL: https://github.com/llvm/llvm-project/commit/35c6d56c0437f79b0f472b22e7353727a433881c
DIFF: https://github.com/llvm/llvm-project/commit/35c6d56c0437f79b0f472b22e7353727a433881c.diff

LOG: [InstCombine] rename tmp values to avoid scripted FileCheck conflicts; NFC

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/pr33689_same_bitwidth.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/pr33689_same_bitwidth.ll b/llvm/test/Transforms/InstCombine/pr33689_same_bitwidth.ll
index 35f0e5caadc6..0ffd41d60a4c 100644
--- a/llvm/test/Transforms/InstCombine/pr33689_same_bitwidth.ll
+++ b/llvm/test/Transforms/InstCombine/pr33689_same_bitwidth.ll
@@ -13,41 +13,41 @@ target datalayout = "p:16:16"
 define void @f(i1 %cond) {
 ; CHECK-LABEL: @f(
 ; CHECK-NEXT:  bb0:
-; CHECK-NEXT:    [[TMP12:%.*]] = alloca [2 x i32], align 8
-; CHECK-NEXT:    [[TMP12_SUB:%.*]] = getelementptr inbounds [2 x i32], [2 x i32]* [[TMP12]], i16 0, i16 0
+; CHECK-NEXT:    [[T12:%.*]] = alloca [2 x i32], align 8
+; CHECK-NEXT:    [[T12_SUB:%.*]] = getelementptr inbounds [2 x i32], [2 x i32]* [[T12]], i16 0, i16 0
 ; CHECK-NEXT:    br i1 [[COND:%.*]], label [[BB1:%.*]], label [[BB2:%.*]]
 ; CHECK:       bb1:
-; CHECK-NEXT:    [[TMP8:%.*]] = ptrtoint [2 x i32]* [[TMP12]] to i16
-; CHECK-NEXT:    store i16 [[TMP8]], i16* @a, align 2
+; CHECK-NEXT:    [[T8:%.*]] = ptrtoint [2 x i32]* [[T12]] to i16
+; CHECK-NEXT:    store i16 [[T8]], i16* @a, align 2
 ; CHECK-NEXT:    unreachable
 ; CHECK:       bb2:
-; CHECK-NEXT:    [[TMP9:%.*]] = load i16*, i16** @b, align 2
-; CHECK-NEXT:    store i16 0, i16* [[TMP9]], align 2
-; CHECK-NEXT:    [[TMP10:%.*]] = load i32, i32* [[TMP12_SUB]], align 8
-; CHECK-NEXT:    [[TMP11:%.*]] = add i32 [[TMP10]], -1
-; CHECK-NEXT:    store i32 [[TMP11]], i32* [[TMP12_SUB]], align 8
+; CHECK-NEXT:    [[T9:%.*]] = load i16*, i16** @b, align 2
+; CHECK-NEXT:    store i16 0, i16* [[T9]], align 2
+; CHECK-NEXT:    [[T10:%.*]] = load i32, i32* [[T12_SUB]], align 8
+; CHECK-NEXT:    [[T11:%.*]] = add i32 [[T10]], -1
+; CHECK-NEXT:    store i32 [[T11]], i32* [[T12_SUB]], align 8
 ; CHECK-NEXT:    ret void
 ;
 bb0:
-  %tmp1 = alloca %i64_t
-  %tmp2 = bitcast %i64_t* %tmp1 to i32*
-  %useless3 = bitcast %i64_t* %tmp1 to i16*
+  %t1 = alloca %i64_t
+  %t2 = bitcast %i64_t* %t1 to i32*
+  %useless3 = bitcast %i64_t* %t1 to i16*
   %useless4 = getelementptr inbounds i16, i16* %useless3, i16 undef
   %useless5 = bitcast i16* %useless4 to i32*
   br i1 %cond, label %bb1, label %bb2
 
 bb1:                                              ; preds = %bb0
-  %useless6 = insertvalue [1 x i32*] undef, i32* %tmp2, 0
+  %useless6 = insertvalue [1 x i32*] undef, i32* %t2, 0
   %useless7 = insertvalue [1 x i32*] %useless6, i32* null, 0
-  %tmp8 = ptrtoint i32* %tmp2 to i16
-  store i16 %tmp8, i16* @a
+  %t8 = ptrtoint i32* %t2 to i16
+  store i16 %t8, i16* @a
   unreachable
 
 bb2:                                              ; preds = %bb0
-  %tmp9 = load i16*, i16** @b
-  store i16 0, i16* %tmp9
-  %tmp10 = load i32, i32* %tmp2
-  %tmp11 = sub i32 %tmp10, 1
-  store i32 %tmp11, i32* %tmp2
+  %t9 = load i16*, i16** @b
+  store i16 0, i16* %t9
+  %t10 = load i32, i32* %t2
+  %t11 = sub i32 %t10, 1
+  store i32 %t11, i32* %t2
   ret void
 }


        


More information about the llvm-commits mailing list