Repository navigation
Commit 4d92573
Add opt-in LTO for portable executor (#24001)
Summary:
Add a generic, default-off `executorch.enable_lto` Buck configuration for the portable `program_no_prim_ops` target. When enabled, the target compiles with `-flto=thin` and exports `-flto=thin` to Buck-linked consumers. OSS builds and ATen variants remain unchanged.
Thin mode is explicit so a target-local opt-in cannot override a product's ThinLTO pipeline with full LTO. Orca already has independently landed whole-XRA/Kymera ThinLTO from D125548482; enabling this setting there is mode-consistent and is not credited with product-wide LTO savings.
Reviewed By: JacobSzwejbka
Differential Revision: D1257837391 parent d07c72b commit 4d92573
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
0 commit comments