[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Sun Feb 6 22:21:50 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.43 -> 1.44
---
Log message:
copyfromreg fix
---
Diffs of the changes: (+6 -3)
AlphaISelPattern.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.43 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.44
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.43 Sun Feb 6 23:55:55 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Mon Feb 7 00:21:37 2005
@@ -589,8 +589,11 @@
}
if (DestType == MVT::f64 || DestType == MVT::f32 ||
- (opcode == ISD::LOAD &&
- (N.getValue(0).getValueType() == MVT::f32 || N.getValue(0).getValueType() == MVT::f64)))
+ (
+ (opcode == ISD::LOAD || opcode == ISD::CopyFromReg || opcode == ISD::EXTLOAD) &&
+ (N.getValue(0).getValueType() == MVT::f32 || N.getValue(0).getValueType() == MVT::f64)
+ )
+ )
return SelectExprFP(N, Result);
switch (opcode) {
@@ -747,7 +750,7 @@
{
//no need to restore GP as we are doing an indirect call
Tmp1 = SelectExpr(N.getOperand(1));
- BuildMI(BB, Alpha::BIS, 2, Alpha::R27).addReg(Tmp1).addReg(Tmp1);
+ BuildMI(BB, Alpha::BIS, 2, Alpha::R27).addReg(Tmp1).addReg(Tmp1);
BuildMI(BB, Alpha::JSR, 2, Alpha::R26).addReg(Alpha::R27).addImm(0);
}
More information about the llvm-commits
mailing list