aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-05-05 13:00:48 +0100
committerJay Foad <jay.foad@amd.com>2020-05-19 17:06:05 +0100
commit9bc989a48d639d04283d6144505e33e8e354c783 (patch)
tree0376be152982a4994bbfb927316541dcee5da656 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent64676499741cb985146ab982a67da859ff8f4f4d (diff)
downloadllvm-9bc989a48d639d04283d6144505e33e8e354c783.zip
llvm-9bc989a48d639d04283d6144505e33e8e354c783.tar.gz
llvm-9bc989a48d639d04283d6144505e33e8e354c783.tar.bz2
[InstCombine] Remove hasNoInfs check for pow(C,y) -> exp2(log2(C)*y)
We already check hasNoNaNs and that x is finite and strictly positive. That only leaves the following special cases (taken from the Linux man page for pow): If x is +1, the result is 1.0 (even if y is a NaN). If the absolute value of x is less than 1, and y is negative infinity, the result is positive infinity. If the absolute value of x is greater than 1, and y is negative infinity, the result is +0. If the absolute value of x is less than 1, and y is positive infinity, the result is +0. If the absolute value of x is greater than 1, and y is positive infinity, the result is positive infinity. The first case is handled elsewhere, and this transformation preserves all the others, so there is no need to limit it to hasNoInfs. Differential Revision: https://reviews.llvm.org/D79409
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions