[PATCH] D44091: [DAGCombiner] New sign-of-zero compliant patterns for fabs folding

Mikhail Dvoretckii via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 6 06:21:46 PST 2018


mike.dvoretsky updated this revision to Diff 137184.
mike.dvoretsky added a comment.

Rebased and reuploaded with full context. Added code to propagate nsz from IR to DAG for the fneg node, as well as to retain flags during vector type legalization. Added tests for flag use on nodes and for vector type fabs folding.


https://reviews.llvm.org/D44091

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  test/CodeGen/X86/fabs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44091.137184.patch
Type: text/x-patch
Size: 17955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180306/2e422c5a/attachment.bin>


More information about the llvm-commits mailing list