diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-16 01:20:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-16 01:20:18 +0000 |
commit | 8ec1dc5fc079dce3358bdec2def9f7fb0b61346a (patch) | |
tree | 3696bb8757ecbecd374940e06f4c6e9bf8613ed0 /llvm/lib | |
parent | 87a769cbd4ac7ba174462ef99b67499dbdc41e7f (diff) | |
download | bcm5719-llvm-8ec1dc5fc079dce3358bdec2def9f7fb0b61346a.tar.gz bcm5719-llvm-8ec1dc5fc079dce3358bdec2def9f7fb0b61346a.zip |
Set up identity transforms.
llvm-svn: 19584
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/TargetLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp index 624c5d1e8f2..3d28fd85f6d 100644 --- a/llvm/lib/Target/TargetLowering.cpp +++ b/llvm/lib/Target/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; } |