[SelectionDAG] Removing FABS folding from DAGCombiner
authorSanjay Patel <spatel@rotateright.com>
Fri, 30 Mar 2018 15:42:52 +0000 (15:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 30 Mar 2018 15:42:52 +0000 (15:42 +0000)
commite09b7dcf3d64372b8370d309ba3cce4d9e5e6402
tree541b09c9c8115edce15bb973865e059eb70c9151
parent4dc1cdc5e1c1184f5ded058d5240532a54c96bc1
[SelectionDAG] Removing FABS folding from DAGCombiner

The code has bugs dealing with -0.0.

Since D44550 introduced FABS pattern folding in InstCombine,
this patch removes the now-redundant code that causes
https://bugs.llvm.org/show_bug.cgi?id=36600.

Patch by Mikhail Dvoretckii!

Differential Revision: https://reviews.llvm.org/D44683

llvm-svn: 328872
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/fabs.ll
llvm/test/CodeGen/X86/fabs.ll