Rong Xu
6cee539337
[Clang] Change AnonStructIds in MangleContext to per-function based
...
Clang is generating different mangled names for the same lambda
function in slightly changed builds (like with non-related
source/Macro change). This is due to the fact that clang uses a
cross-translation-unit sequential string "$_<n>" in lambda's
mangled name. Here, "n" is the AnonStructIds field in MangleContext.
Different mangled names for a unchanged function is undesirable:
it makes perf comparison harder, and can cause some unnecessary
profile mismatch in SampleFDO.
This patch makes mangled name for lambda functions more stable
by changing AnonStructIds to a per-function based seq number if the
DeclContext is a function.
Differential Revision: https://reviews.llvm.org/D136397
2022-10-23 22:33:52 -07:00
..
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-07-26 17:52:43 +02:00
2022-04-07 12:09:47 +02:00
2022-10-23 22:33:52 -07:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-10-23 22:33:52 -07:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2020-12-31 00:27:11 -08:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-07-05 16:57:46 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-10-23 22:33:52 -07:00
2022-04-07 12:09:47 +02:00
2021-09-16 14:04:42 -04:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2020-12-30 20:52:01 -08:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-05-12 08:46:16 -07:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2020-07-15 14:47:45 -07:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-10-23 22:33:52 -07:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00
2022-04-07 12:09:47 +02:00