[llvm] [Support][NFC] Drop unnecessary default lambdas (PR #175577)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 12 08:25:11 PST 2026


aengelke wrote:

Actually, llvm::cl should have plenty of room for more optimizations. A simple cl::opt<bool> is 192 bytes .bss and produces quite a bit of code in the global initializers. enum options are much larger. We could also use something other than std::function, but this requires changes at the handful of users that use capturing lambdas (esp. MLIR). *sigh*

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


More information about the llvm-commits mailing list