Skip to content

Commit

Permalink
[HLSL] update StructuredBuffer subscript test for alwaysinline (llvm#…
Browse files Browse the repository at this point in the history
…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 llvm#89282
  • Loading branch information
pow2clk authored and hamphet committed Sep 18, 2024
1 parent 72451d9 commit f1e5c61
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ void main(unsigned GI : SV_GroupIndex) {
// Even at -O0 the subscript operators get inlined. The -O0 IR is a bit messy
// and confusing to follow so the match here is pretty weak.

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

0 comments on commit f1e5c61

Please sign in to comment.