[PATCH] D31290: [x86] use PMOVMSK to replace memcmp libcalls for 16-byte equality

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 10:49:22 PDT 2017


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

Patch updated:
Check all of the 16-byte simple value types before giving up.

Eli pointed me to https://reviews.llvm.org/D28637 (which I hadn't seen of course!) - a general solution for memcmp transformation. Not sure if this specialization still makes sense given that patch, but since I already made the edits, I'll post it.


https://reviews.llvm.org/D31290

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/memcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31290.92974.patch
Type: text/x-patch
Size: 8735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170324/e5944905/attachment.bin>


More information about the llvm-commits mailing list