1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/lib/Transforms/Vectorize
Philip Reames 17055bcff3 [LoopVec] Support non-instructions as argument to uniform mem ops
The initial step of the uniform-after-vectorization (lane-0 demanded only) analysis was very awkwardly written. It would revisit use list of each pointer operand of a widened load/store. As a result, it was in the worst case O(N^2) where N was the number of instructions in a loop, and had restricted operand Value types to reduce the size of use lists.

This patch replaces the original algorithm with one which is at most O(2N) in the number of instructions in the loop. (The key observation is that each use of a potentially interesting pointer is visited at most twice, once on first scan, once in the use list of *it's* operand. Only instructions within the loop have their uses scanned.)

In the process, we remove a restriction which required the operand of the uniform mem op to itself be an instruction.  This allows detection of uniform mem ops involving global addresses.

Differential Revision: https://reviews.llvm.org/D92056
2020-12-03 14:51:44 -08:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
LoadStoreVectorizer.cpp [CSSPGO] IR intrinsic for pseudo-probe block instrumentation 2020-11-20 10:39:24 -08:00
LoopVectorizationLegality.cpp [SVE] Add support for scalable vectors with vectorize.scalable.enable loop attribute 2020-12-02 13:23:43 +00:00
LoopVectorizationPlanner.h [LV] Epilogue Vectorization with Optimal Control Flow (Recommit) 2020-12-02 10:09:56 -05:00
LoopVectorize.cpp [LoopVec] Support non-instructions as argument to uniform mem ops 2020-12-03 14:51:44 -08:00
SLPVectorizer.cpp [SLP] use 'match' for binop/select; NFC 2020-12-02 09:04:08 -05:00
VectorCombine.cpp [VectorCombine] Avoid crossing address space boundaries. 2020-10-16 13:19:31 -07:00
Vectorize.cpp [VectorCombine] new IR transform pass for partial vector ops 2020-02-09 10:04:41 -05:00
VPlan.cpp [VPlan] Use VPUser to manage VPPredInstPHIRecipe operand (NFC). 2020-11-30 13:09:58 +00:00
VPlan.h [VPlan] Use VPUser to manage VPPredInstPHIRecipe operand (NFC). 2020-11-30 13:09:58 +00:00
VPlanDominatorTree.h Revert multiple patches based on "Introduce CfgTraits abstraction" 2020-10-27 20:33:30 +01:00
VPlanHCFGBuilder.cpp
VPlanHCFGBuilder.h
VPlanLoopInfo.h
VPlanPredicator.cpp
VPlanPredicator.h
VPlanSLP.cpp [VPlan] Disconnect VPValue and VPUser. 2020-09-23 14:44:31 +01:00
VPlanTransforms.cpp [VPlan] Clean up uses/operands on VPBB deletion. 2020-10-05 14:43:52 +01:00
VPlanTransforms.h [VPlan] Turn classes with all public members into structs (NFC). 2020-04-12 11:03:39 +01:00
VPlanValue.h [VPlan] Use VPUser to manage VPPredInstPHIRecipe operand (NFC). 2020-11-30 13:09:58 +00:00
VPlanVerifier.cpp Use llvm::is_contained where appropriate (NFC) 2020-07-27 10:20:44 -07:00
VPlanVerifier.h [VPlan] Remove unused forward declarations. NFC. 2020-04-23 12:34:20 +01:00
VPRecipeBuilder.h [VPlan] Remove unused forward declarations. NFC. 2020-04-23 12:34:20 +01:00