diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-11-08 12:47:35 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-11-08 12:47:35 +0000 |
commit | 1ee2434eb56cc492dcc2329eeb8d8d2dc31851aa (patch) | |
tree | 4bd08260b3aa535872bea374c254a175e3f235d6 /contrib/llvm-project/llvm/lib | |
parent | bad6b236063aec174085ff872bbee6603245aa34 (diff) |
Notes
Diffstat (limited to 'contrib/llvm-project/llvm/lib')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index f54f1673526d..641b2facdc41 100644 --- a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -14257,6 +14257,8 @@ SDValue PPCTargetLowering::combineFPToIntToFP(SDNode *N, // from the hardware. if (Op.getValueType() != MVT::f32 && Op.getValueType() != MVT::f64) return SDValue(); + if (!Op.getOperand(0).getValueType().isSimple()) + return SDValue(); if (Op.getOperand(0).getValueType().getSimpleVT() <= MVT(MVT::i1) || Op.getOperand(0).getValueType().getSimpleVT() > MVT(MVT::i64)) return SDValue(); |