[llvm-dev] IR liveness analysis in 2019

Quentin Colombet via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 7 11:13:24 PST 2019


Hi,

> On Mar 6, 2019, at 9:58 AM, Son Tuan VU via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hello,
> 
> I found this thread back in 2014 [1] . Does anyone know if there has been any attempt to answer this request?
> 
> To clarify, I am looking for an analysis that computes the textbook definition of variable liveness: "given a SSA value V and a point P, is there a possible path from P to any use of V?" which is equivalent to "is V live at point P?"
> 
> I can write something myself (and will if need be), but just want to avoid reinventing the wheels in case improvements have been made since 2014. If not, what's the best way to contribute this analysis to LLVM? I mean, for example, is "Computing Liveness Sets for SSA" by Boissinot  [2] efficient enough to be implemented in LLVM?

This one should be efficient enough.
That said, what are you trying to achieve?

The reason we don’t have such algorithm in LLVM IR is because we don’t need it. Usually def-uses chains and dominance property are enough for what the optimizers want to do.

> Or should I find a better algorithm to solve this?
> 
> [1] http://lists.llvm.org/pipermail/llvm-dev/2014-July/074793.html <http://lists.llvm.org/pipermail/llvm-dev/2014-July/074793.html>
> [2] http://hal.inria.fr/docs/00/58/53/03/PDF/RR-7503.pdf <http://hal.inria.fr/docs/00/58/53/03/PDF/RR-7503.pdf>
> 
> Thanks for your help,
> 
> Cheers
> 
> Son Tuan Vu
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190307/eb87fa1f/attachment.html>


More information about the llvm-dev mailing list