[LLVMdev] Basic block liveouts
Jeff Kunkel
jdkunk3 at gmail.com
Fri Nov 5 09:09:23 PDT 2010
Sorry, I think I answered the wrong question.
On Fri, Nov 5, 2010 at 12:07 PM, Jeff Kunkel <jdkunk3 at gmail.com> wrote:
> They cannot be found like the live in values because different values may
> be live out.
>
> For instance the psudocode may look like:
>
> BB0:
> vreg1 = rand()
> if( vreg1 > .5 ) goto BB1;
> else goto BB2;
> BB1:
> vreg 2 = rand();
> EAX = copy vreg2;
> Return
> BB2:
> vreg 3 = rand() * rand()'
> EAX = copy vreg3;
> Return
>
> On Fri, Nov 5, 2010 at 7:41 AM, s Last namerc <srcsrc84 at yahoo.com> wrote:
>
>> Is there an easy way to obtain all liveout variables of a basic block?
>> Liveins
>> can be found for each MachineBasicBlock, but I can only find liveouts for
>> the
>> whole function, at MachineRegisterInfo. Do I need to find them out
>> manually?
>>
>>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101105/75109c51/attachment.html>
More information about the llvm-dev
mailing list