[PATCH] D17859: [InstCombine] convert 'isPositive' and 'isNegative' vector comparisons to shifts (PR26701, PR26819)

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 14:44:09 PDT 2016


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

Patch updated:
I didn't see a reply to my latest question: is it really a canonicalization if it only works some of the time?
But here's a semi-canonicalization patch for comparison to the earlier draft.


http://reviews.llvm.org/D17859

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/icmp-vec.ll
  test/Transforms/LoopVectorize/if-conversion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17859.57102.patch
Type: text/x-patch
Size: 7076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160512/0705901f/attachment.bin>


More information about the llvm-commits mailing list