mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 22:02:51 +01:00
When profiling, these jumped out as good inline candidates that happened to be out-of-line, this just moves them inline so that they're available. I think as much as 10% improvement in check-phase from this, but I haven't run detailed before/after measurements as these changes seemed minimally disruptive. Also switched from `CHECK` to `DCHECK` in one place that seems especially hot and where the check itself seems reasonable to only do in debug builds. Left a comment since we rarely need to remove these any more.