[all-commits] [llvm/llvm-project] 882082: [HLSL] Buffer handle globals should not be constan...
Justin Bogner via All-commits
all-commits at lists.llvm.org
Thu Mar 20 11:08:15 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 882082ae405d086b61588169fe31102c58b7d74e
https://github.com/llvm/llvm-project/commit/882082ae405d086b61588169fe31102c58b7d74e
Author: Justin Bogner <mail at justinbogner.com>
Date: 2025-03-20 (Thu, 20 Mar 2025)
Changed paths:
M clang/lib/CodeGen/CGHLSLRuntime.cpp
M clang/test/CodeGenHLSL/cbuffer.hlsl
M clang/test/CodeGenHLSL/cbuffer_and_namespaces.hlsl
M clang/test/CodeGenHLSL/cbuffer_with_packoffset.hlsl
M clang/test/CodeGenHLSL/cbuffer_with_static_global_and_function.hlsl
M clang/test/CodeGenHLSL/default_cbuffer.hlsl
M clang/test/CodeGenHLSL/default_cbuffer_with_layout.hlsl
M llvm/test/CodeGen/DirectX/Metadata/cbuffer_metadata.ll
Log Message:
-----------
[HLSL] Buffer handle globals should not be constants (#130231)
If these are constants their initializers will be removed by
InstCombine. Change them to not be constants and initialize them with
poison.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list