[LLVMdev] "Splitting" live values

Carlo Alberto Ferraris cafxx at strayorange.com
Tue Jun 14 09:17:58 PDT 2011


Suppose I have in my CFG (among others) two basic blocks A and B, with 
an edge from A to B. I need to do the following:

    * get the set S of live values across that edge
    * map each of them to another value (S->S')
    * replace - in B and its successors - all the uses of values in S
      with the mapped values (S')

Does LLVM provide an easy way to do this (because I can't seem to be 
able to find it)? If not, do you have any suggestions about how to do it?

-- 
Carlo Alberto Ferraris <cafxx at strayorange.com 
<mailto:cafxx at strayorange.com>>
website/blog <http://cafxx.strayorange.com> - +39 333 7643 235
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110614/618810c8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cafxx.vcf
Type: text/x-vcard
Size: 233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110614/618810c8/attachment.vcf>


More information about the llvm-dev mailing list