https://github.com/usx95 approved this pull request. LGTM. This looks fine. Thanks for trying out the suggestions. Since this is only populated when `-print-stats` is enabled, I am fine with using strings as keys. https://github.com/llvm/llvm-project/pull/166568