SharonXSharon fe76e9004b
[CodeGen] Allow -enable-ext-tsp-block-placement and -apply-ext-tsp-for-size passed together (#183642)
Currently, the asserts fires when both `UseExtTspForPerf` and
`UseExtTspForSize` are true on a given function.

Ideally, we should allow `-enable-ext-tsp-block-placement` and
`-apply-ext-tsp-for-size` passed together, meaning run the block
placement for performance on hot functions, while run the placement for
size on cold functions.

The diff makes `UseExtTspForPerf` and `UseExtTspForSize` mutually
exclusive per-function: functions with the `OptForSize` attribute use
ext-tsp block placement for size, while the others use ext-tsp block
placement for perf.

Co-authored-by: Sharon Xu <sharonxu@fb.com>
2026-02-27 20:12:50 -08:00
..
2026-02-06 17:11:15 -08:00
2025-11-10 12:34:00 -08:00