aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-16 01:20:18 +0000
committerChris Lattner <sabre@nondot.org>2005-01-16 01:20:18 +0000
commitcfdfe4ce4afba6e6d2ef22bf07068ca6bf5bd75a (patch)
tree71fde8321f86ab3b6bad55287f38e678d77dddda /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent71c42a0190300a8903aaea80467b88f15f327ea9 (diff)
Set up identity transforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 624c5d1e8f..3d28fd85f6 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;
}