diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-04-04 09:24:29 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-04-04 09:24:29 -0700 |
commit | 49fe8cd6daf8994a148ab15d562022797441d11a (patch) | |
tree | ee4642a0477cc1013a0fef45b2b174bee81097c1 /llvm/lib/IR/Constants.cpp | |
parent | 988d84a5fc12c7808553786ae8f45ec15e1a811c (diff) | |
download | llvm-49fe8cd6daf8994a148ab15d562022797441d11a.zip llvm-49fe8cd6daf8994a148ab15d562022797441d11a.tar.gz llvm-49fe8cd6daf8994a148ab15d562022797441d11a.tar.bz2 |
[IR] Remove ConstantFP::getZeroValueForNegation.
This was mostly used for integers which was fixed in D147492.
The only FP usage was removed in D147497.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D147501
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index 9e26d6c..398ceda 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -1009,13 +1009,6 @@ Constant *ConstantFP::getZero(Type *Ty, bool Negative) { return C; } -Constant *ConstantFP::getZeroValueForNegation(Type *Ty) { - if (Ty->isFPOrFPVectorTy()) - return getNegativeZero(Ty); - - return Constant::getNullValue(Ty); -} - // ConstantFP accessors. ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) { |