Fangrui Song
2cb8d5ca3a
[Pseudo Probe] Do not place functions in nodeduplicate COMDATs
...
For a function not in an IR COMDAT, currently we place it into a nodeduplicate IR
COMDAT so that its text section and its associated .pseudo_probe section will be
in the same section group, which can be retained or discarded by the linker as a
unit. However, the section group wastes space.
After D153189 uses SHF_LINK_ORDER to ensure a .pseudo_probe section will be
discarded when its associated text section is discarded, we can remove the
nodeduplicate IR change.
In the following example, the .pseudo_probe associated with .text.f is discarded as expected.
```
clang -c -ffunction-sections -fpseudo-probe-for-profiling -xc =(printf 'void _start(){} void f(){}') -o a.o
ld.lld --gc-sections --print-gc-sections a.o
```
Reviewed By: hoy
Differential Revision: https://reviews.llvm.org/D153191
2023-06-17 15:40:20 -07:00
..
2023-05-01 17:10:08 +00:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 00:52:30 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-01-09 12:03:28 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-03-30 11:05:10 -07:00
2022-07-17 17:38:35 -07:00
2023-03-30 11:05:10 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 00:52:30 -07:00
2022-07-17 00:52:30 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-05-01 17:10:08 +00:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-03-10 18:05:25 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-11-27 21:27:50 -05:00
2022-11-27 21:27:50 -05:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-03-20 13:43:54 -07:00
2023-06-16 13:53:31 -07:00
2023-01-11 14:34:43 -08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-05-01 17:10:08 +00:00
2022-03-23 11:31:12 -07:00
2022-02-09 15:49:53 -08:00
2022-07-17 17:38:35 -07:00
2022-02-09 15:49:53 -08:00
2022-02-09 15:49:53 -08:00
2022-07-17 17:38:35 -07:00
2023-03-30 11:05:10 -07:00
2023-03-30 11:05:10 -07:00
2022-12-08 11:47:16 +01:00
2023-03-20 13:43:54 -07:00
2022-07-17 17:38:35 -07:00
2022-10-07 11:09:46 -07:00
2022-12-08 02:38:50 +03:00
2023-03-24 12:43:16 -07:00
2022-11-28 11:00:45 -08:00
2023-01-30 13:26:56 -08:00
2022-10-27 13:28:22 -07:00
2023-06-17 15:40:20 -07:00
2022-11-27 21:27:50 -05:00
2022-07-17 17:38:35 -07:00
2022-12-22 16:24:03 +01:00
2022-07-17 17:38:35 -07:00
2022-12-01 21:25:59 +01:00
2023-05-26 13:00:16 -07:00
2023-01-03 14:23:25 +01:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2023-05-10 11:26:23 -07:00
2022-07-17 17:38:35 -07:00
2023-01-03 14:23:25 +01:00
2022-07-17 17:38:35 -07:00
2023-06-16 13:53:31 -07:00
2023-05-19 22:21:56 +08:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 12:00:41 -07:00
2022-07-17 00:52:30 -07:00
2022-07-17 00:52:30 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00
2022-07-17 17:38:35 -07:00