[llvm-commits] [llvm] r143749 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Eric Christopher echristo at apple.com
Fri Nov 4 17:41:16 PDT 2011


On Nov 4, 2011, at 4:45 PM, Chad Rosier wrote:

> +    EVT SrcVT = MVT::i32;
>     unsigned Opc = isThumb ? ARM::t2MOVi16 : ARM::MOVi16;
> -    unsigned ImmReg = createResultReg(TLI.getRegClassFor(VT));
> +    unsigned ImmReg = createResultReg(TLI.getRegClassFor(SrcVT));

There's a lot of code that uses this construct as well:

TargetRegisterClass *RC = isThumb?ARM::rGPRRegisterClass
                                        		    :ARM::GPRRegisterClass;

Yours is likely shorter if we wanted to change all of them :)

-eric


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


More information about the llvm-commits mailing list