[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp VirtRegMap.cpp

Chris Lattner clattner at apple.com
Mon Jun 18 09:42:33 PDT 2007


On Jun 18, 2007, at 7:46 AM, Dan Gohman wrote:

>> Is this necessary? ARM is already doing this by marking trivially re-
>> materializable instructions with let isReMaterializable = 1.
>
> It's not necessary, but it seems cleaner :-).
>
> In the ARM target, other than instructions that are always trivially
> rematerialiable, there's only LDR, with a ReMaterializable clone  
> named LDRcp.
> x86 has a variety of load instructions, so in order to work the way  
> ARM does
> x86 would need a varity of clones, and then the clones wouldn't be  
> able to
> use the automatic instruction selection, so there would still need  
> to be some
> new custom logic for picking which clone to use for each constant.

Ah, good point.  Evan, do you think the LDRcp instruction can be  
eliminated now?

-Chris



More information about the llvm-commits mailing list