CHERIoT-Platform / llvm-project

Fork of LLVM adding CHERIoT, based on the CHERI LLVM fork
4 stars 6 forks source link

Investigate homogeneous prologues/epilogues #51

Open resistor opened 5 days ago

resistor commented 5 days ago

The AArch64 backend implements a size optimization called homogeneous prologues/epilogues, which essentially means that it strongly canonicalizes prologues and epilogues to increase the success rate of outlining on those code sequences, and even does custom pre-outlining to workaround limitations of the generic outline.

We should investigate whether it would be worth porting this optimization to RISCV and thence to CHERIoT.

Relevant commit: https://github.com/llvm/llvm-project/commit/4f58b1bd29747ff491148ef8e27bf310b7f07d97