[llvm] [SelectionDAG] Move EVTToAPFloatSemantics to MVT/EVT (PR #103001)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 22:11:43 PDT 2024
================
@@ -6449,8 +6448,7 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
C->isOpaque());
case ISD::UINT_TO_FP:
case ISD::SINT_TO_FP: {
- APFloat apf(EVTToAPFloatSemantics(VT),
- APInt::getZero(VT.getSizeInBits()));
+ APFloat apf(VT.getFltSemantics(), APInt::getZero(VT.getSizeInBits()));
----------------
s-barannikov wrote:
(nit) Might be a good chance to capitalize some variable names (here and in the other places).
https://github.com/llvm/llvm-project/pull/103001
More information about the llvm-commits
mailing list