[LLVMdev] Post-RA Def/Use Information

Owen Anderson resistor at mac.com
Fri Jun 15 15:00:53 PDT 2012


On Jun 15, 2012, at 2:54 PM, dag at cray.com wrote:

> Looking through TOT sources, I don't see anything that would provide
> def/use chains (or equivalent information) post register allocation.  I
> would like to write some peeps to clean up various target-specific
> things but for safety I will need such information.
> 
> Is such an analysis pass available somewhere that I've missed?  If not,
> is there a better way to find all uses of a defined value post register
> allocation?  Writing a def/use chain pass would not be hard but if the
> information is already there I'd rather avoid that cost.  :)

Do the MachineRegisterInfo::def_begin/def_end/use_begin/use_end iterators not work on physical registers?

--Owen



More information about the llvm-dev mailing list