Fix (bitcast (fabs x)), (bitcast (fneg x)) and (bitcast (fcopysign cst,
authorEric Christopher <echristo@gmail.com>
Thu, 10 Dec 2015 22:09:06 +0000 (22:09 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 10 Dec 2015 22:09:06 +0000 (22:09 +0000)
commit54f1a90d457ca270ee9ae84f521fe016cb830ee4
tree8ced1553bb6fe7a34ac0b2aedfe0922be86c680d
parent67b9896fe1fe5313de3a728d01a94fa2486e07ea
Fix (bitcast (fabs x)), (bitcast (fneg x)) and (bitcast (fcopysign cst,
x)) combines for ppc_fp128, since signbit computation is more
complicated.

Discussion thread:
http://lists.llvm.org/pipermail/llvm-dev/2015-November/092863.html

Patch by Tim Shen!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll [new file with mode: 0644]