[NFC][YAMLTraits] Use `SmallString<>`+SSO when yamlizing non-strings
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 5 Jan 2023 18:20:32 +0000 (21:20 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 5 Jan 2023 18:39:04 +0000 (21:39 +0300)
commit53ab564ecfc93984ded8cce26d210af9f828a49c
tree971eeba3213592704ef16726f6f4c661f317d188
parent866c587af3be956450556cd3c8399cfcf9f9bde6
[NFC][YAMLTraits] Use `SmallString<>`+SSO when yamlizing non-strings

This gets rid of basically all temporary allocations
during YAML serialization of llvm-exegesis snippets,
we go from ~1.8M temporary allocations to 13k.
llvm/include/llvm/Support/YAMLTraits.h