[llvm-commits] [llvm] r134122 - /llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp
Eric Christopher
echristo at apple.com
Wed Jun 29 18:05:47 PDT 2011
Author: echristo
Date: Wed Jun 29 20:05:46 2011
New Revision: 134122
URL: http://llvm.org/viewvc/llvm-project?rev=134122&view=rev
Log:
Make sure we use the correct register class here since we'll need to
care about spill values.
Modified:
llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp
Modified: llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp?rev=134122&r1=134121&r2=134122&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaISelLowering.cpp Wed Jun 29 20:05:46 2011
@@ -835,7 +835,8 @@
case 'r':
return std::make_pair(0U, Alpha::GPRCRegisterClass);
case 'f':
- return std::make_pair(0U, Alpha::F4RCRegisterClass);
+ return VT == MVT::f64 ? std::make_pair(0U, Alpha::F8RCRegisterClass) :
+ std::make_pair(0U, Alpha::F4RCRegisterClass);
}
}
return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);
More information about the llvm-commits
mailing list