llvm-project
72344f5e - [RegisterCoalescer] Prefer copy over rematerialization when smaller

Commit
65 days ago
[RegisterCoalescer] Prefer copy over rematerialization when smaller When the source register has multiple uses, compare instruction sizes before rematerializing. If the copy is smaller than the rematerialized instruction, prefer keeping the copy to reduce code size. Additionally, register-to-register copies are often eliminated by register renaming on modern out-of-order CPUs, making them effectively free at runtime.
Author
Committer
Parents
Loading