[PATCH] D82550: [SLPVectorizer] handle vectorized lib functions

Sanne Wouda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 07:26:30 PDT 2020


sanwou01 created this revision.
sanwou01 added reviewers: fhahn, fpetrogalli.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Teaches the SLPVectorizer to use vectorized library functions for
non-intrinsic calls.

This already worked for intrinsics that have vectorized library
functions, thanks to D75878 <https://reviews.llvm.org/D75878>, but schedules with library functions with a
vector variant were being rejected early.

- assume that there are no load/store dependencies between lib functions with a vector variant; this would otherwise prevent the bundle from becoming "ready"

- check during legalization that the vector variant can be used

- fix-up where we previously assumed that a call would be an intrinsic


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82550

Files:
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82550.273348.patch
Type: text/x-patch
Size: 82604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200625/b3669eeb/attachment.bin>


More information about the llvm-commits mailing list