[PATCH] D60150: [DAGCombiner][x86] scalarize splatted vector FP ops

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 4 08:27:43 PDT 2019


spatel updated this revision to Diff 193723.
spatel added a comment.

Patch updated:

1. Start the match from a splat-shuffle rather a binop.
2. Rename the TLI hook to the more specific query about extract_element.

This is still independent of D60214 <https://reviews.llvm.org/D60214> (but it would affect more tests if we do that transform).

This would have exposed some holes in x86's horizontal op + shuffle simplifications, but those should be fixed with:
rL357642 <https://reviews.llvm.org/rL357642>
rL357644 <https://reviews.llvm.org/rL357644>
rL357703 <https://reviews.llvm.org/rL357703>


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60150/new/

https://reviews.llvm.org/D60150

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/X86/haddsub-shuf.ll
  llvm/test/CodeGen/X86/scalarize-fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60150.193723.patch
Type: text/x-patch
Size: 17520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190404/c4f34c39/attachment.bin>


More information about the llvm-commits mailing list