summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-28 00:21:38 +0000
committerDale Johannesen <dalej@apple.com>2007-09-28 00:21:38 +0000
commit1d1d0e77358770b4b857706d55f7af457b13cfba (patch)
tree906f87a110fadeb862a00da11dd8b1a341caf3c3
parentf91d1c92ba06703d31111079afeb4b018652237a (diff)
downloadbcm5719-llvm-1d1d0e77358770b4b857706d55f7af457b13cfba.tar.gz
bcm5719-llvm-1d1d0e77358770b4b857706d55f7af457b13cfba.zip
Don't do SRA for unions with long double fields.
Fixes a SWB crash. llvm-svn: 42422
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 1092b889277..1d9e402494a 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -905,6 +905,9 @@ static bool MergeInType(const Type *In, const Type *&Accum,
case Type::PointerTyID: Accum = TD.getIntPtrType(); break;
case Type::FloatTyID: Accum = Type::Int32Ty; break;
case Type::DoubleTyID: Accum = Type::Int64Ty; break;
+ case Type::X86_FP80TyID: return true;
+ case Type::FP128TyID: return true;
+ case Type::PPC_FP128TyID: return true;
default:
assert(Accum->isInteger() && "Unknown FP type!");
break;
@@ -914,6 +917,9 @@ static bool MergeInType(const Type *In, const Type *&Accum,
case Type::PointerTyID: In = TD.getIntPtrType(); break;
case Type::FloatTyID: In = Type::Int32Ty; break;
case Type::DoubleTyID: In = Type::Int64Ty; break;
+ case Type::X86_FP80TyID: return true;
+ case Type::FP128TyID: return true;
+ case Type::PPC_FP128TyID: return true;
default:
assert(In->isInteger() && "Unknown FP type!");
break;
OpenPOWER on IntegriCloud