[all-commits] [llvm/llvm-project] 32f1c5: [VPlan] Update VPValue::getDef to return VPRecipeB...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Nov 16 14:12:51 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 32f1c5531be20a925474aeb03162a3277fbe593b
https://github.com/llvm/llvm-project/commit/32f1c5531be20a925474aeb03162a3277fbe593b
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-11-16 (Wed, 16 Nov 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/lib/Transforms/Vectorize/VPlan.cpp
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
M llvm/lib/Transforms/Vectorize/VPlanValue.h
M llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
Log Message:
-----------
[VPlan] Update VPValue::getDef to return VPRecipeBase, adjust name(NFC)
The return value of getDef is guaranteed to be a VPRecipeBase and all
users can also accept a VPRecipeBase *. Most users actually case to
VPRecipeBase or a specific recipe before using it, so this change
removes a number of redundant casts.
Also rename it to getDefiningRecipe to make the name a bit clearer.
Reviewed By: Ayal
Differential Revision: https://reviews.llvm.org/D136068
More information about the All-commits
mailing list