Skip to content

Commit 509fb93

Browse files
authored
Fix min_vec_size.ll test for changes in vector-combine (#145392)
Running the `vector-combine` pass on this test now produces a single shuffle on a loaded `<1 x float>` instead of an insert into a `<2 x float>` followed by a shuffle. This test change matches changes in other tests in PR #144690, which introduced the optimization.
1 parent a45fda6 commit 509fb93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/test/CodeGen/DirectX/min_vec_size.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ target triple = "dxil-unknown-shadermodel6.7-library"
66
; Make sure vec combine min vec size is 1 instead of 4 for float.
77
; CHECK:@foo()
88
; CHECK-NEXT:%[[LD:[0-9]+]] = load <1 x float>, ptr @a, align 8
9-
; CHECK-NEXT:%insert = shufflevector <1 x float> %[[LD]], <1 x float> poison, <2 x i32> <i32 0, i32 poison>
10-
; CHECK-NEXT:%shuffle = shufflevector <2 x float> %insert, <2 x float> poison, <2 x i32> zeroinitializer
9+
; CHECK-NEXT:%shuffle = shufflevector <1 x float> %[[LD]], <1 x float> poison, <2 x i32> zeroinitializer
1110
; CHECK-NEXT:ret <2 x float> %shuffle
1211

1312
@a = external local_unnamed_addr constant float

0 commit comments

Comments
 (0)