[PATCH] D149587: InstSimplify: Simplifications for ldexp
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 08:56:10 PDT 2023
foad added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:6100
+ // ldexp(-inf, x) -> -inf
+ if (C && (C->isZero() || C->isInfinity()))
+ return Op0;
----------------
Also handle qNaN here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149587/new/
https://reviews.llvm.org/D149587
More information about the llvm-commits
mailing list