From: Chris Lattner Date: Sun, 16 Jan 2005 01:20:18 +0000 (+0000) Subject: Set up identity transforms. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cfdfe4ce4afba6e6d2ef22bf07068ca6bf5bd75a;p=oota-llvm.git Set up identity transforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19584 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }