[Mips] R5900 scheduling model and FP cost fixes #15
Loading…
Reference in a new issue
No description provided.
Delete branch "r5900-sched-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
R5900 scheduling and cost-model changes from PS2-192. All are gated on the R5900 subtarget; no generic pass, pipeline or -O meaning changes.
shouldSinkkeeps FP arithmetic in a block that ends inbc1t/bc1f, so it fills the measured ~6-cyclec.cond.sto branch gap; past integer branches it sinks as usualMeasured split on physics with loops swapped (-O2): 2.32M baseline, 2.07M with the cost model alone (1.23x GCC), 1.89M with both (1.13x). The narrowed hook gives the same 1.89M, and the bench compiles to identical code before and after narrowing.
Code size of the bench is unchanged. 2023 lit tests pass (CodeGen/Mips, MC/Mips, MC/Disassembler/Mips, Transforms/SimplifyCFG).
🤖 Generated with Claude Code