[llvm] [SelectionDAG] Handle `fneg`/`fabs`/`fcopysign` in `SimplifyDemandedBits` (PR #139239)

Iris Shi via llvm-commits llvm-commits at lists.llvm.org
Sat May 10 11:44:11 PDT 2025


================
@@ -18259,21 +18259,6 @@ SDValue DAGCombiner::visitFCOPYSIGN(SDNode *N) {
     }
   }
 
-  // copysign(fabs(x), y) -> copysign(x, y)
----------------
el-ev wrote:

I've tested locally, nothing changes when adding the removed combines back. But regressions happen when `fold (fabs (fabs x)) -> (fabs x)` at L18878-L18880 is removed.

https://github.com/llvm/llvm-project/pull/139239


More information about the llvm-commits mailing list