[llvm-dev] Finding live values

Daniel Berlin via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 24 12:39:45 PDT 2016


the statepoint code has a liveness algorithm you may be able to repurpose.
If you want something faster, see
https://hal.inria.fr/inria-00558509v1/document


On Thu, Mar 24, 2016 at 12:35 PM, Rob Lyerly via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi everyone,
>
> I'm writing a pass that inserts the llvm.experimental.stackmap intrinsic
> into the IR, and I'd like to record the locations of *all* live values
> whenever I insert the intrinsic (all this entails is adding values as
> arguments to the intrinsic).  Is there any pre-existing analysis pass which
> can give me the live values at a given instruction in a basic block?  Or do
> I need to write an analysis pass to calculate this information?
>
> I realize that live value analysis is usually performed during register
> allocation in the backend, but I was wondering if there was anything
> available in the optimizer.
>
>
> --
> Rob Lyerly
> Graduate Research Assistant, Systems Software Research Group
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://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/20160324/153f5ebf/attachment.html>


More information about the llvm-dev mailing list