Greedy RA adds copies of virtual registers when splitting live interval.
This stat might be useful.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is this really useful as a user-surfacing remark? Won't it have a really high false positive rate due to coalescing?
Comment Actions
To be honest - not sure. But if RA can assigned physical register and can eliminate copy it a good sign.
So probably I also need to check reg map whether physical registers are different or not... Need to check...
Comment Actions
IIRC, it actually inserts copies and relies on coalescing to remove most of them. It would be worth checking on large programs and such to see if you're actually seeing register copies for some of the remarks emitted.