================
@@ -59,6 +59,7 @@ static bool replaceCBufferAccesses(Module &M) {
for (const hlsl::CBufferMember &Member : Mapping.Members)
replaceUsersOfGlobal(Member.GV, Mapping.Handle, Member.Offset);
+ CBufMD->removeCBufferGlobalsFromUseList(M);
----------------
bogner wrote:
I agree - this small amount of per-backend duplication seems like a lower cost
than needing to reimplement removeFromUsedLists in the Frontend/HLSL library.
https://github.com/llvm/llvm-project/pull/202745
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits