[clang] 4a0bf83 - Reapply "[HLSL] update StructuredBuffer subscript test for alwaysinline (#109023)"

Thurston Dang via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 17 15:55:32 PDT 2024


Author: Thurston Dang
Date: 2024-09-17T22:54:04Z
New Revision: 4a0bf8377e1038d6cf9454c7c6740bd759729938

URL: https://github.com/llvm/llvm-project/commit/4a0bf8377e1038d6cf9454c7c6740bd759729938
DIFF: https://github.com/llvm/llvm-project/commit/4a0bf8377e1038d6cf9454c7c6740bd759729938.diff

LOG: Reapply "[HLSL] update StructuredBuffer subscript test for alwaysinline (#109023)"

This reverts commit da03d17698f205fe8ebc54c32994c8ce2c51a81e.

I mistakenly reverted this fix-forward.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
index 9bd885d94d7e75..155749ec4f94a9 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
@@ -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 at 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


        


More information about the cfe-commits mailing list