[llvm] [SimplifyQuery] Include a context-function (NFC) (PR #225369)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 07:13:53 PDT 2026


artagnon wrote:

> I guess that something that might make this expensive is that you are eagerly initializing CtxF from CtxI. We should also have a getter that takes it either from the provided CtxF or from CtxI only when needed.

That fixes the issue! I'm clearly very inexperienced at reasoning about compile times :(

https://llvm-compile-time-tracker.com/compare.php?from=9073b4d71e9d66c495df5f6ec42ab0279326f762&to=0d589670fc088b5927dd4952af9fb41a9679f9af&stat=instructions%3Au

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


More information about the llvm-commits mailing list