[LLVMdev] IMPLICIT_DEF's

Evan Cheng evan.cheng at apple.com
Sun Jul 20 11:02:35 PDT 2008


On Jul 19, 2008, at 9:14 AM, Fernando Magno Quintao Pereira wrote:

>
> Guys,
>
>     I think I figure out the way that the current LLVM allocators are
> handling IMPLICIT_DEF's. One question more: why are you adding null  
> length
> intervals to IMPLICIT_DEF instructions? If they were non-null, I  
> think the
> code to handle them would be more homogeneous, e.g a traversal of the
> intervals during register allocation would already reveal virtuals  
> defined
> implicitly.

Assigning IMPLICIT_DEF defined interval a null length interval is an  
optimization. It enables more coalescing since an implicitly defined  
register should not conflict with anything else.

Evan

>
>
> best,
>
> Fernando
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list