[llvm] 51ba347 - [SLPVectorizer] Convert test to opaque pointers (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 07:39:58 PST 2023


Author: Nikita Popov
Date: 2023-01-04T16:39:51+01:00
New Revision: 51ba34708dc0bef06525a6275b73fa5f73547bb4

URL: https://github.com/llvm/llvm-project/commit/51ba34708dc0bef06525a6275b73fa5f73547bb4
DIFF: https://github.com/llvm/llvm-project/commit/51ba34708dc0bef06525a6275b73fa5f73547bb4.diff

LOG: [SLPVectorizer] Convert test to opaque pointers (NFC)

Added: 
    

Modified: 
    llvm/test/Transforms/SLPVectorizer/X86/crash_vectorizeTree.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SLPVectorizer/X86/crash_vectorizeTree.ll b/llvm/test/Transforms/SLPVectorizer/X86/crash_vectorizeTree.ll
index f376372712ae..5a0deddb9247 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/crash_vectorizeTree.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/crash_vectorizeTree.ll
@@ -19,22 +19,19 @@ target triple = "x86_64-apple-macosx10.9.0"
 define void @bar() {
 ; CHECK-LABEL: @bar(
 ; CHECK-NEXT:  bb:
-; CHECK-NEXT:    [[I:%.*]] = getelementptr inbounds [[TMP0:%.*]], %0* undef, i64 0, i32 1, i32 0
-; CHECK-NEXT:    [[I2:%.*]] = getelementptr inbounds [[TMP0]], %0* undef, i64 0, i32 1, i32 0
-; CHECK-NEXT:    [[I4:%.*]] = getelementptr inbounds [[TMP0]], %0* undef, i64 0, i32 1, i32 0
+; CHECK-NEXT:    [[I:%.*]] = getelementptr inbounds [[TMP0:%.*]], ptr undef, i64 0, i32 1, i32 0
+; CHECK-NEXT:    [[I2:%.*]] = getelementptr inbounds [[TMP0]], ptr undef, i64 0, i32 1, i32 0
+; CHECK-NEXT:    [[I4:%.*]] = getelementptr inbounds [[TMP0]], ptr undef, i64 0, i32 1, i32 0
 ; CHECK-NEXT:    br label [[BB6:%.*]]
 ; CHECK:       bb6:
 ; CHECK-NEXT:    [[TMP0]] = phi <2 x double> [ <double 1.800000e+01, double 2.800000e+01>, [[BB:%.*]] ], [ [[TMP3:%.*]], [[BB17:%.*]] ], [ [[TMP3]], [[BB16:%.*]] ], [ [[TMP3]], [[BB16]] ]
-; CHECK-NEXT:    [[TMP1:%.*]] = bitcast double* [[I]] to <2 x double>*
-; CHECK-NEXT:    store <2 x double> [[TMP0]], <2 x double>* [[TMP1]], align 8
-; CHECK-NEXT:    [[TMP2:%.*]] = bitcast double* [[I2]] to <2 x double>*
-; CHECK-NEXT:    [[TMP3]] = load <2 x double>, <2 x double>* [[TMP2]], align 8
+; CHECK-NEXT:    store <2 x double> [[TMP0]], ptr [[I]], align 8
+; CHECK-NEXT:    [[TMP3]] = load <2 x double>, ptr [[I2]], align 8
 ; CHECK-NEXT:    br i1 undef, label [[BB11:%.*]], label [[BB12:%.*]]
 ; CHECK:       bb11:
 ; CHECK-NEXT:    ret void
 ; CHECK:       bb12:
-; CHECK-NEXT:    [[TMP4:%.*]] = bitcast double* [[I4]] to <2 x double>*
-; CHECK-NEXT:    store <2 x double> [[TMP3]], <2 x double>* [[TMP4]], align 8
+; CHECK-NEXT:    store <2 x double> [[TMP3]], ptr [[I4]], align 8
 ; CHECK-NEXT:    br i1 undef, label [[BB13:%.*]], label [[BB14:%.*]]
 ; CHECK:       bb13:
 ; CHECK-NEXT:    br label [[BB14]]
@@ -53,29 +50,29 @@ define void @bar() {
 ; CHECK-NEXT:    unreachable
 ;
 bb:
-  %i = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 0
-  %i1 = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 1
-  %i2 = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 0
-  %i3 = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 1
-  %i4 = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 0
-  %i5 = getelementptr inbounds %0, %0* undef, i64 0, i32 1, i32 1
+  %i = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 0
+  %i1 = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 1
+  %i2 = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 0
+  %i3 = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 1
+  %i4 = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 0
+  %i5 = getelementptr inbounds %0, ptr undef, i64 0, i32 1, i32 1
   br label %bb6
 
 bb6:                                              ; preds = %bb17, %bb16, %bb16, %bb
   %i7 = phi double [ 2.800000e+01, %bb ], [ %i10, %bb17 ], [ %i10, %bb16 ], [ %i10, %bb16 ]
   %i8 = phi double [ 1.800000e+01, %bb ], [ %i9, %bb17 ], [ %i9, %bb16 ], [ %i9, %bb16 ]
-  store double %i8, double* %i, align 8
-  store double %i7, double* %i1, align 8
-  %i9 = load double, double* %i2, align 8
-  %i10 = load double, double* %i3, align 8
+  store double %i8, ptr %i, align 8
+  store double %i7, ptr %i1, align 8
+  %i9 = load double, ptr %i2, align 8
+  %i10 = load double, ptr %i3, align 8
   br i1 undef, label %bb11, label %bb12
 
 bb11:                                             ; preds = %bb6
   ret void
 
 bb12:                                             ; preds = %bb6
-  store double %i9, double* %i4, align 8
-  store double %i10, double* %i5, align 8
+  store double %i9, ptr %i4, align 8
+  store double %i10, ptr %i5, align 8
   br i1 undef, label %bb13, label %bb14
 
 bb13:                                             ; preds = %bb12


        


More information about the llvm-commits mailing list