[clang] da03d17 - Revert "[HLSL] update StructuredBuffer subscript test for alwaysinline (#109023)"

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


Author: Thurston Dang
Date: 2024-09-17T22:49:59Z
New Revision: da03d17698f205fe8ebc54c32994c8ce2c51a81e

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

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

This reverts commit f4fe26ddfde0d5bb1c512e89a9cdd442a7518ee1.

Reason: 4a63f4d301c0e044073e1b1f8f110015ec1778a1 reverted "[HLSL] set alwaysinline on HLSL functions (#106588)" due to a buildbot failure; this test (which builds upon the reverted patch) also needs to be reverted.

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 155749ec4f94a9..9bd885d94d7e75 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
@@ -11,7 +11,6 @@ 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 void @main()
-// Verify inlining leaves only calls to "llvm." intrinsics
-// CHECK-NOT:   call {{[^@]*}} @{{[^l][^l][^v][^m][^\.]}}
+// CHECK: define internal void @"?main@@YAXI at Z"
+// CHECK-NOT: call
 // CHECK: ret void


        


More information about the cfe-commits mailing list