[InstCombine] propagate sign argument through nested copysigns
authorSanjay Patel <spatel@rotateright.com>
Mon, 30 Dec 2019 16:04:00 +0000 (11:04 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 30 Dec 2019 16:06:02 +0000 (11:06 -0500)
commit987eb8e26ccf73180b3b53b8a38d87e3e6489326
tree11088925d933b05cbdbbccbe6a6a0b5f88e6ee1b
parentf33fd9648c442a23f863e03ea1c806da15278fd1
[InstCombine] propagate sign argument through nested copysigns

This is another optimization suggested in PR44153:
https://bugs.llvm.org/show_bug.cgi?id=44153
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/copysign.ll