Where is liveness analysis pass?


Thanks for your suggestion. Using liveness information for virtual register is a good idea, but what I am working on is a source-to-source compiler, so I prefer to use FunctionPass instead of MachineFunctionPass.

Interestingly I found a FunctionPass example for classic liveness data flow equation.