llvm-project
bbf0680e - [NFC][LowerTypeTests] Support ordering in GlobalLayoutBuilder with Less comparator (#221044)

Commit
1 day ago
[NFC][LowerTypeTests] Support ordering in GlobalLayoutBuilder with Less comparator (#221044) Allow callers to guide fragment placement in GlobalLayoutBuilder using an optional comparator. This is a prerequisite for https://github.com/llvm/llvm-project/pull/221046, which reorders CFI jump table entries according to profile and ThinLTO call edge hotness. Passing an ordering comparator allows GlobalLayoutBuilder to sort elements within strict types and place the globally hottest fragment at the end of the jump table, while preserving 100% contiguity (single range checks without holes) for all type subsets. PR Stack: * https://github.com/llvm/llvm-project/pull/220776 * https://github.com/llvm/llvm-project/pull/221043 * ➤ https://github.com/llvm/llvm-project/pull/221044 * https://github.com/llvm/llvm-project/pull/221045 * https://github.com/llvm/llvm-project/pull/221046 Assisted-by: Gemini
Author
Parents
Loading