[PATCH] D79409: [InstCombine] Remove hasNoInfs check for pow(C, y) -> exp2(log2(C)*y)
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 14:44:34 PDT 2020
foad added a comment.
In D79409#2023671 <https://reviews.llvm.org/D79409#2023671>, @evandro wrote:
> `exp2(log2(x) * -∞)` → `exp2(±∞)` → ∞ if `x < 2` or 0 if `x > 2`
> `exp2(log2(x) * +∞)` → `exp2(±∞)` → 0 if `x < 2` or ∞ if `x > 2`
No, the sign of log2(x) depends on whether x is less or greater than 1, not less or greater than 2.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79409/new/
https://reviews.llvm.org/D79409
More information about the llvm-commits
mailing list