summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
diff options
context:
space:
mode:
authorAmara Emerson <aemerson@apple.com>2017-12-19 17:21:35 +0000
committerAmara Emerson <aemerson@apple.com>2017-12-19 17:21:35 +0000
commitb6ddbef673052424c8d748ae930469ab73d70ab4 (patch)
tree0f7afd42fb73f7d46795f1ad5a831039839a399a /llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
parentcf73eba142afd533205a94e3e472697cf908047b (diff)
downloadbcm5719-llvm-b6ddbef673052424c8d748ae930469ab73d70ab4.tar.gz
bcm5719-llvm-b6ddbef673052424c8d748ae930469ab73d70ab4.zip
[GlobalISel][Legalizer] Fix crash when trying to lower G_FNEG of fp128 types.
This doesn't add legalizer support, just prevents crashing so that we can gracefully fall back to SDAG. Fixes PR35690. llvm-svn: 321091
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 87a658be4c2..a3b43c92a7f 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -835,6 +835,9 @@ LegalizerHelper::lower(MachineInstr &MI, unsigned TypeIdx, LLT Ty) {
case 64:
ZeroTy = Type::getDoubleTy(Ctx);
break;
+ case 128:
+ ZeroTy = Type::getFP128Ty(Ctx);
+ break;
default:
llvm_unreachable("unexpected floating-point type");
}
OpenPOWER on IntegriCloud