[PATCH] D41618: [x86] allow pairs of PCMPEQ for vector-sized integer equality comparisons (PR33325)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 28 14:24:35 PST 2017


spatel created this revision.
spatel added reviewers: zvi, courbet, RKSimon.
Herald added a subscriber: mcrosier.

This is an extension of https://reviews.llvm.org/D31156 with the goal that we'll allow memcmp() == 0 expansion for x86 to use 2 pairs of loads per block.

The memcmp expansion pass (formerly part of CGP) will generate this kind of pattern with oversized integer compares, so we want to transform these into x86-specific vector nodes before legalization splits things into scalar chunks.

See PR33325 for more details:
https://bugs.llvm.org/show_bug.cgi?id=33325


https://reviews.llvm.org/D41618

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/setcc-wide-types.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41618.128305.patch
Type: text/x-patch
Size: 10700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171228/75f08be5/attachment.bin>


More information about the llvm-commits mailing list