[all-commits] [llvm/llvm-project] b0b886: [VPlan] Add initial anlysis to infer scalar type o...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Fri Oct 27 06:38:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0b88643a1facc4fcb06783e295de3d4a91dc924
https://github.com/llvm/llvm-project/commit/b0b88643a1facc4fcb06783e295de3d4a91dc924
Author: Florian Hahn <flo at fhahn.com>
Date: 2023-10-27 (Fri, 27 Oct 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/CMakeLists.txt
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/lib/Transforms/Vectorize/VPlan.h
A llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
A llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Log Message:
-----------
[VPlan] Add initial anlysis to infer scalar type of VPValues. (#69013)
This patch adds initial type inferrence for VPValues. It infers the
scalar type of a VPValue, by bottom-up traversing through defining
recipes until root nodes with known types are reached (e.g. live-ins or
load recipes). The types are then propagated top down through
operations.
This is intended as building block for a VPlan-based cost model, which
will need access to type information for VPValues/recipes.
Initial testing is done by asserting the inferred type matches the type
of the result value generated for a widen and replicate recipes.
More information about the All-commits
mailing list