[InstCombine] fold copysign with fabs/fneg operand
authorSanjay Patel <spatel@rotateright.com>
Sat, 15 Aug 2020 18:21:24 +0000 (14:21 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 16 Aug 2020 12:53:47 +0000 (08:53 -0400)
commit3ffb751f3dbf059b2ec061fe2f4302c9eba26b43
treeb9f9440695c95deb7ec0670e02187d625be8377f
parent3fed67b7e6d67b0208c6c8bfc2ed8211d383bc39
[InstCombine] fold copysign with fabs/fneg operand

We already get this in the backend, but we need to do
it in IR too to consistently get yet more copysign
transforms.
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/copysign.ll