diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-13 19:03:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-13 19:03:13 +0000 |
| commit | 64685b4ca29e1a57e2ab3deb9a0d7a45d7074e9b (patch) | |
| tree | 4ab5707fea69e536af2a7de9f18c8eaf8f2caf02 /llvm/lib | |
| parent | aa6cbd90c5f1cac6d478ddb2ebd2102d81b998d9 (diff) | |
| download | bcm5719-llvm-64685b4ca29e1a57e2ab3deb9a0d7a45d7074e9b.tar.gz bcm5719-llvm-64685b4ca29e1a57e2ab3deb9a0d7a45d7074e9b.zip | |
Majik numbers are bad
llvm-svn: 23330
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp index 26a63531424..910166ef6b6 100644 --- a/llvm/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelLowering.cpp @@ -193,7 +193,7 @@ AlphaTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) VarArgsOffset = count * 8; std::vector<SDOperand> LS; for (int i = 0; i < 6; ++i) { - if (args_int[i] < 1024) + if (MRegisterInfo::isPhysicalRegister(args_int[i])) args_int[i] = AddLiveIn(MF, args_int[i], getRegClassFor(MVT::i64)); SDOperand argt = DAG.getCopyFromReg(DAG.getRoot(), args_int[i], MVT::i64); int FI = MFI->CreateFixedObject(8, -8 * (6 - i)); @@ -202,7 +202,7 @@ AlphaTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) LS.push_back(DAG.getNode(ISD::STORE, MVT::Other, DAG.getRoot(), argt, SDFI, DAG.getSrcValue(NULL))); - if (args_float[i] < 1024) + if (MRegisterInfo::isPhysicalRegister(args_float[i])) args_float[i] = AddLiveIn(MF, args_float[i], getRegClassFor(MVT::f64)); argt = DAG.getCopyFromReg(DAG.getRoot(), args_float[i], MVT::f64); FI = MFI->CreateFixedObject(8, - 8 * (12 - i)); |

