[PATCH] D143505: [InstSimplify] fix/improve folding with an SNaN operand

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 10:16:38 PST 2023


spatel marked an inline comment as done.
spatel added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:5337
+  const APFloat &NaN = cast<ConstantFP>(In)->getValue();
+  return ConstantFP::get(Ty, scalbn(NaN, 0, APFloat::rmNearestTiesToEven));
 }
----------------
arsenm wrote:
> Probably should add / expose a makeQuiet if this is going to spread more places 
Yes, that was just laziness - will update.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143505/new/

https://reviews.llvm.org/D143505



More information about the llvm-commits mailing list