From cfdfe4ce4afba6e6d2ef22bf07068ca6bf5bd75a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Jan 2005 01:20:18 +0000 Subject: [PATCH] Set up identity transforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19584 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/TargetLowering.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 624c5d1e8f2..3d28fd85f6d 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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; }