[llvm-commits] [llvm] r134123 - in /llvm/trunk: include/llvm/Target/TargetLowering.h lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp lib/CodeGen/SelectionDAG/TargetLowering.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jun 29 18:33:56 PDT 2011


On Jun 29, 2011, at 6:20 PM, Eric Christopher wrote:

> -static const TargetRegisterClass *
> -isAllocatableRegister(unsigned Reg, MachineFunction &MF,
> -                      const TargetLowering &TLI,
> -                      const TargetRegisterInfo *TRI) {
...
> -  for (TargetRegisterInfo::regclass_iterator RCI = TRI->regclass_begin(),
> -       E = TRI->regclass_end(); RCI != E; ++RCI) {
...
> -    for (TargetRegisterClass::vt_iterator I = RC->vt_begin(), E = RC->vt_end();
> -         I != E; ++I) {
> -      if (TLI.isTypeLegal(*I)) {
> -        // If we have already found this register in a different register class,
> -        // choose the one with the largest VT specified.  For example, on
> -        // PowerPC, we favor f64 register classes over f32.
> -        if (FoundVT == MVT::Other || FoundVT.bitsLT(*I)) {


Awesome! That function was particularly special.

Thanks
/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110629/789d3959/attachment.html>


More information about the llvm-commits mailing list