Skip to content

Commit 4a0bf83

Browse files
committed
Reapply "[HLSL] update StructuredBuffer subscript test for alwaysinline (#109023)"
This reverts commit da03d17. I mistakenly reverted this fix-forward.
1 parent da03d17 commit 4a0bf83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ void main(unsigned GI : SV_GroupIndex) {
1111
// Even at -O0 the subscript operators get inlined. The -O0 IR is a bit messy
1212
// and confusing to follow so the match here is pretty weak.
1313

14-
// CHECK: define internal void @"?main@@YAXI@Z"
15-
// CHECK-NOT: call
14+
// CHECK: define void @main()
15+
// Verify inlining leaves only calls to "llvm." intrinsics
16+
// CHECK-NOT: call {{[^@]*}} @{{[^l][^l][^v][^m][^\.]}}
1617
// CHECK: ret void

0 commit comments

Comments
 (0)