If there is an unused def, this would previously
report that the register was live. Check for uses
first so that it is reported as dead if never used.
Details
Details
- Reviewers
MatzeB
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This change LGTM and should be committed.
Though reading the code I think there is a pre-existing bug hiding: The live-outs for return blocks is not the union of the successor live-ins but the callee saved registers (see for example the code in LivePhysRegs/LiveRegUnits dealing with this)...