[PATCH] D62997: [LV] Share the LV illegality reporting with LoopVectorize. NFC.
Pavel Samolysov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 01:08:49 PDT 2019
psamolysov created this revision.
psamolysov added reviewers: hsaito, fhahn, rengolin.
psamolysov added a project: LLVM.
Herald added subscribers: rkruppe, hiraditya.
The logic of the `LoopVectorizationLegality::reportVectorizationFailure`
method is extracted into a utility function which is exported through
the `LoopVectorizationLegality.h` header file and is available for
the LoopVectorize pass. The utility function is used in the pass by two
the following ways: directly in the `processLoop` method and being
wrapped into a private method of the `LoopVectorizationCostModel` class
with the same name. The method `createMissedAnalysis` was removed, it
isn't required anymore. The function `debugVectorizationFailure` is
marked as static and is available in LoopVectorizationLegality.cpp only.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62997
Files:
llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/nofloat-report.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62997.203505.patch
Type: text/x-patch
Size: 13959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/1dc595b5/attachment.bin>
More information about the llvm-commits
mailing list