mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
054ce2fa8a
VPlan-native path Context: Patch Series #2 for outer loop vectorization support in LV using VPlan. (RFC: http://lists.llvm.org/pipermail/llvm-dev/2017-December/119523.html). Patch series #2 checks that inner loops are still trivially lock-step among all vector elements. Non-loop branches are blindly assumed as divergent. Changes here implement VPlan based predication algorithm to compute predicates for blocks that need predication. Predicates are computed for the VPLoop region in reverse post order. A block's predicate is computed as OR of the masks of all incoming edges. The mask for an incoming edge is computed as AND of predecessor block's predicate and either predecessor's Condition bit or NOT(Condition bit) depending on whether the edge from predecessor block to the current block is true or false edge. Reviewers: fhahn, rengolin, hsaito, dcaballe Reviewed By: fhahn Patch by Satish Guggilla, thanks! Differential Revision: https://reviews.llvm.org/D53349 llvm-svn: 351990
20 lines
364 B
CMake
20 lines
364 B
CMake
add_llvm_library(LLVMVectorize
|
|
LoadStoreVectorizer.cpp
|
|
LoopVectorizationLegality.cpp
|
|
LoopVectorize.cpp
|
|
SLPVectorizer.cpp
|
|
Vectorize.cpp
|
|
VPlan.cpp
|
|
VPlanHCFGBuilder.cpp
|
|
VPlanHCFGTransforms.cpp
|
|
VPlanPredicator.cpp
|
|
VPlanSLP.cpp
|
|
VPlanVerifier.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|