[LLVMdev] Some questions about live intervals

Roman Levenstein
Fri, 08 Feb 2008 16:59:49 -0000

Hi Evan,

Here is a patch for the LiveIntervalAnalysis that we discussed.

--- Evan Cheng <evan.cheng at apple.com> schrieb:
> > 1) What is the easiest way to understand which MBB a given
> instruction index belongs to? All the required information is
> available in the
> > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful
> to add  a small function getMBBFromIndex() to this class?
>
> Sure there is a reverse map (actually just a vector) Idx2MBBMap.
> Justadd a query.

Done. Please find a patch attached to this mail.

> > As for (1) and (2), I could implement and provide patches for it,
> > if you think this is desirable.
>
> Yes, thanks.

Here you are!

-Roman


      Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LiveIntervalAnalysis.patch
Type: text/x-diff
Size: 2377 bytes
Desc: 2881029184-LiveIntervalAnalysis.patch
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20080208/5cfee60e/attachment.patch>