This patch should close the issue raised in PR32216. The patch introduce a new llc switch "-print-latency" which allows to add comments with latencies in output .s files. The patch opens several questions:
- there is real mess in terminology: the sources mix throughput and latency completely - we should fix it
- sometimes the selection of our sched model is unclear because the selected alternative code sequence (sometimes) looks worse than the initial code
- there are some issues with FMA support inside the model (in fact it does not work at the moment)
- some values of latency (reported by model) look rather strange
This is the initial version of the patch and I'm sure all the above issues will be resolved soon.
style - newline before comment, add '.' to end of comment.