[clang] [Clang] Track alloca element types to avoid getAllocatedType() calls (PR #181740)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 22 17:25:44 PST 2026


================
@@ -948,15 +948,16 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
     OB.emplace_back("convergencectrl", bundleArgs);
   }
 
-  llvm::DenseMap<const DeclaratorDecl *, llvm::Value *> OutputSemantic;
+  llvm::DenseMap<const DeclaratorDecl *, std::pair<llvm::Value *, llvm::Type *>>
----------------
efriedma-quic wrote:

Both the calls to try_emplace use "FD" as the key, which doesn't change in this function.  So, at most one key.

https://github.com/llvm/llvm-project/pull/181740


More information about the cfe-commits mailing list