Author: Timm Baeder
Date: 2026-08-30T09:56:23+02:00
New Revision: 4dbe25d8be69912e506566613ef06e3db1978770

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

LOG: [clang][bytecode] Reduce `EvalEmitter::Descriptors` inline size (#219773)

For pure expressions, we usually have few locals and few scopes. Reduce
the inline size here.

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/EvalEmitter.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/EvalEmitter.h 
b/clang/lib/AST/ByteCode/EvalEmitter.h
index 26bb22a71a3ce..a151329c22aa5 100644
--- a/clang/lib/AST/ByteCode/EvalEmitter.h
+++ b/clang/lib/AST/ByteCode/EvalEmitter.h
@@ -105,7 +105,7 @@ class EvalEmitter : public SourceMapper {
   /// Parameter indices.
   llvm::DenseMap<const ParmVarDecl *, FuncParam> Params;
   /// Local descriptors.
-  llvm::SmallVector<SmallVector<Local, 8>, 2> Descriptors;
+  llvm::SmallVector<SmallVector<Local, 2>, 1> Descriptors;
   std::optional<SourceInfo> LocOverride = std::nullopt;
 
 private:


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to