[LLVMdev] Question about coalescing

Evan Cheng evan.cheng at apple.com
Mon Dec 17 10:48:19 PST 2007

On Dec 15, 2007, at 4:45 PM, Fernando Magno Quintao Pereira wrote:

> Dear guys,
>     I want to coalesce some copies, and I would like to know if  
> there is
> any method that I can call, like JoinCopy from the old (LLVM 1.9)
> LiveIntervals class. I found it in SimpleRegisterCoalescing (LLVM  
> 2.1),
> but I do not want to call this analysis, as I have my own.
>     basically, I can determine that two virtuals do not overlap, and I
> know that it is safe to join them. In the old v1.9, I simply had to do
> this:
>     this->interval_analysis_->JoinCopy(mach_inst, use_eg, def_reg);

SimpleRegisterCoalescing::JoinCopy hasn't fundamentally changed from  
the old JoinCopy. It still does the same sort of analysis. The only  
change really is the interface.


> 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