[PATCH] D52318: [x86] avoid 256-bit andnp that requires insert/extract with AVX1 (PR37449)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 21 14:40:15 PDT 2018


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

Patch updated:
The previous rev of the patch hinted at a constraint that I assumed, but wasn't actually checked: we should only do this transform when the input to the 'not' is the result of a vector concatenation. Ie, there must be some leading vector integer op that got split up itself. Without that, we're going to end up with more instructions than we started with.


https://reviews.llvm.org/D52318

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx-logic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52318.166562.patch
Type: text/x-patch
Size: 4899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180921/2df776f2/attachment.bin>


More information about the llvm-commits mailing list