[PATCH] D17630: [x86, SSE] fold 'isPositive' vector integer operations (PR26701)

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 17:32:38 PST 2016


spatel created this revision.
spatel added reviewers: ab, delena, RKSimon.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

This is one of the cases shown in:
https://llvm.org/bugs/show_bug.cgi?id=26701

Shift and negate is what InstCombine appears to prefer, so I've started with that pattern. Note that the 'pcmpeq' instructions are always generating the negative one for the actual 'pcmpgt' comparison in each case.

http://reviews.llvm.org/D17630

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-pcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17630.49129.patch
Type: text/x-patch
Size: 5553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160226/4b0eed44/attachment.bin>


More information about the llvm-commits mailing list