[PATCH] D143505: [InstSimplify] fix/improve folding with an SNaN operand
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 09:02:24 PST 2023
arsenm 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));
}
----------------
Probably should add / expose a makeQuiet if this is going to spread more places
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143505/new/
https://reviews.llvm.org/D143505
More information about the llvm-commits
mailing list