diff options
author | Dale Johannesen <dalej@apple.com> | 2007-10-16 23:38:29 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-10-16 23:38:29 +0000 |
commit | db44bf85d832b26c398cda9acfd3473832f6e585 (patch) | |
tree | cb9ff00bfbdbeab1820f66449aea201e3c3f2d53 /lib/VMCore/ConstantFold.cpp | |
parent | 280f8a2ecedc213372402fe221e2b1a613816f7d (diff) | |
download | external_llvm-db44bf85d832b26c398cda9acfd3473832f6e585.zip external_llvm-db44bf85d832b26c398cda9acfd3473832f6e585.tar.gz external_llvm-db44bf85d832b26c398cda9acfd3473832f6e585.tar.bz2 |
Disable attempts to constant fold PPC f128.
Remove the assumption that this will happen from
various places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | lib/VMCore/ConstantFold.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index da7e768..a261980 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/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) { |