That's potentially very useful. But the current register allocator is
not tracking this. This is something that can be computed at the
beginning of allocation but it needs to be updated when spills /
spilts happen.
Evan
On Mar 7, 2008, at 12:53 PM, David Greene wrote:
> Is there a convenient way to get the number of live intervals at any
> program point? Bonus if there's an easy way to iterate through all
> of the live intervals at each program point.
>
> Ideally I'd like to give some routine an instruction index and have
> it return an iterator to all live intervals at that point.
>
> -Dave
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev