Set up identity transforms.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2005 01:20:18 +0000 (01:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Jan 2005 01:20:18 +0000 (01:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19584 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 624c5d1e8f2b896f2b2281af33bce24617833326..3d28fd85f6d639211aa2005a50c088bb420acff4 100644 (file)
@@ -94,8 +94,15 @@ void TargetLowering::computeRegisterProperties() {
       // 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;
 }