summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-12-02 09:21:59 -0500
committerSanjay Patel <spatel@rotateright.com>2019-12-02 09:23:12 -0500
commitaf0babc90a5c35cbecce4cc4a27e0396fe03f588 (patch)
tree97887a62c2953761c03e351ae887ceb6fd75eeb5 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent62364965619bd7e8847418b21ec327a78bd1624c (diff)
downloadbcm5719-llvm-af0babc90a5c35cbecce4cc4a27e0396fe03f588.tar.gz
bcm5719-llvm-af0babc90a5c35cbecce4cc4a27e0396fe03f588.zip
[InstCombine] fold copysign with constant sign argument to (fneg+)fabs
If the sign of the sign argument is known (this could be extended to use ValueTracking), then we can use fneg+fabs to clear/set the sign bit of the magnitude argument. http://llvm.org/docs/LangRef.html#llvm-copysign-intrinsic This transform is already done in DAGCombiner, but we can do it sooner in IR as suggested in PR44153: https://bugs.llvm.org/show_bug.cgi?id=44153 We have effectively no analysis for copysign in IR, so we are taking the unusual step of increasing the number of IR instructions for the negative constant case. Differential Revision: https://reviews.llvm.org/D70792
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud