[PATCH] D149587: InstSimplify: Simplifications for ldexp
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 03:21:01 PDT 2023
foad added a comment.
I think you can simplify ldexp(x, C) -> x * ldexp(1.0, C). Even for strictfp this should work if you use a constrained fmul and the if the new ldexp itself does not overflow or underflow.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149587/new/
https://reviews.llvm.org/D149587
More information about the llvm-commits
mailing list