summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-10-16 23:38:29 +0000
committerDale Johannesen <dalej@apple.com>2007-10-16 23:38:29 +0000
commite5facd51cb08a0724c84a9ddb5d9f83b9cb70588 (patch)
tree9bf0942a21b5a7e33e18cda578d4c3e42e132471 /llvm/lib/VMCore
parent4e816133c83b9d129bfa48708d61ba664c82bba0 (diff)
downloadbcm5719-llvm-e5facd51cb08a0724c84a9ddb5d9f83b9cb70588.tar.gz
bcm5719-llvm-e5facd51cb08a0724c84a9ddb5d9f83b9cb70588.zip
Disable attempts to constant fold PPC f128.
Remove the assumption that this will happen from various places. llvm-svn: 43053
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r--llvm/lib/VMCore/ConstantFold.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp
index da7e768d720..a26198067c6 100644
--- a/llvm/lib/VMCore/ConstantFold.cpp
+++ b/llvm/lib/VMCore/ConstantFold.cpp
@@ -464,6 +464,10 @@ static Constant *EvalVectorOp(const ConstantVector *V1,
Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
const Constant *C1,
const Constant *C2) {
+ // No compile-time operations on this type yet.
+ if (C1->getType() == Type::PPC_FP128Ty)
+ return 0;
+
// Handle UndefValue up front
if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
switch (Opcode) {
OpenPOWER on IntegriCloud