[PATCH] D109049: [SLP] Support llvm.isnan in vectorizer
Serge Pavlov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 1 01:42:33 PDT 2021
sepavloff created this revision.
sepavloff added reviewers: RKSimon, ABataev, fhahn, spatel, bjope.
Herald added subscribers: dexonsmith, hiraditya.
sepavloff requested review of this revision.
Herald added a project: LLVM.
This change adds `llvm.isnan` to the set of trivially vectorizable
intrinsic functions. This function differs from other functions by
signature, so processing `Call` instruction in `vectorizeTree` was
changed so that overloaded argument types of intrinsic functions were
restored using information from intrinsic description tables.
This change fixes PR51556 (Failure to vectorize llvm.isnan calls).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109049
Files:
llvm/include/llvm/IR/Intrinsics.h
llvm/lib/Analysis/VectorUtils.cpp
llvm/lib/IR/Function.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/intrinsic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109049.369884.patch
Type: text/x-patch
Size: 16593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210901/595abdf6/attachment.bin>
More information about the llvm-commits
mailing list