[PATCH] D19391: transform obscured FP sign bit ops into a fabs/fneg using TLI hook

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 12:23:13 PDT 2016


spatel retitled this revision from "transform masking off of an FP sign bit into a fabs...but only if it's legal!" to "transform obscured FP sign bit ops into a fabs/fneg using TLI hook".
spatel updated the summary for this revision.
spatel updated this revision to Diff 56185.
spatel added a comment.

Patch updated:

1. Instead of checking legality of fabs/fneg, provide a TLI hook that can predicate as needed.
2. Instead of handling fabs alone, implement a fabs/fneg helper function leaving vectors and fnabs as TODO items.


http://reviews.llvm.org/D19391

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/CodeGen/AArch64/fcvt-int.ll
  test/Transforms/InstCombine/and2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19391.56185.patch
Type: text/x-patch
Size: 7070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160504/e6814039/attachment.bin>


More information about the llvm-commits mailing list