[llvm-commits] CVS: llvm/lib/Target/TargetLowering.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 15 17:20:31 PST 2005
Changes in directory llvm/lib/Target:
TargetLowering.cpp updated: 1.3 -> 1.4
---
Log message:
Set up identity transforms.
---
Diffs of the changes: (+7 -0)
Index: llvm/lib/Target/TargetLowering.cpp
diff -u llvm/lib/Target/TargetLowering.cpp:1.3 llvm/lib/Target/TargetLowering.cpp:1.4
--- llvm/lib/Target/TargetLowering.cpp:1.3 Sat Jan 15 19:10:58 2005
+++ llvm/lib/Target/TargetLowering.cpp Sat Jan 15 19:20:18 2005
@@ -94,8 +94,15 @@
// larger type.
SetValueTypeAction((MVT::ValueType)IntReg, 1, *this, TransformToType,
ValueTypeActions);
+ else
+ TransformToType[(MVT::ValueType)IntReg] = (MVT::ValueType)IntReg;
// If the target does not have native support for F32, promote it to F64.
if (!hasNativeSupportFor(MVT::f32))
SetValueTypeAction(MVT::f32, 1, *this, TransformToType, ValueTypeActions);
+ else
+ TransformToType[MVT::f32] = MVT::f32;
+
+ assert(hasNativeSupportFor(MVT::f64) && "Target does not support FP?");
+ TransformToType[MVT::f64] = MVT::f64;
}
More information about the llvm-commits
mailing list