Skip to content

Commit f4fe26d

Browse files
authored
[HLSL] update StructuredBuffer subscript test for alwaysinline (#109023)
The Alwaysinline change made the mangled form of entry points get removed. The StructuredBuffer-subscript.hlsl test was introduced in the meantime depending on that version of the entry point. This revises it in the same way as RWBuffer-subscript Follow up to #89282
1 parent 6153582 commit f4fe26d

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)