[PATCH] D48214: [SLPVectorizer] Recognise non uniform power of 2 constants

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 15 03:50:00 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: ABataev, spatel, dtemirbulatov.

Since https://reviews.llvm.org/D46637 we are better at handling uniform/non-uniform constant Pow2 detection; this patch tweaks the SLP argument handling to support them.

As SLP works with arrays of values I don't think we can easily use the pattern match helpers here.


Repository:
  rL LLVM

https://reviews.llvm.org/D48214

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/powof2div.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48214.151485.patch
Type: text/x-patch
Size: 8522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180615/34aa32b5/attachment.bin>


More information about the llvm-commits mailing list