[llvm] r199186 - Switch the NEON register class from QPR to DPair.

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Jan 13 22:18:34 PST 2014


Author: stoklund
Date: Tue Jan 14 00:18:34 2014
New Revision: 199186

URL: http://llvm.org/viewvc/llvm-project?rev=199186&view=rev
Log:
Switch the NEON register class from QPR to DPair.

The already allocatable DPair superclass contains odd-even D register
pair in addition to the even-odd pairs in the QPR register class. There
is no reason to constrain the set of D register pairs that can be used
for NEON values. Any NEON instructions that require a Q register will
automatically constrain the register class to QPR.

The allocation order for DPair begins with the QPR registers, so
register allocation is unlikely to change much.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=199186&r1=199185&r2=199186&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Tue Jan 14 00:18:34 2014
@@ -156,7 +156,7 @@ void ARMTargetLowering::addDRTypeForNEON
 }
 
 void ARMTargetLowering::addQRTypeForNEON(MVT VT) {
-  addRegisterClass(VT, &ARM::QPRRegClass);
+  addRegisterClass(VT, &ARM::DPairRegClass);
   addTypeForNEON(VT, MVT::v2f64, MVT::v4i32);
 }
 





More information about the llvm-commits mailing list