[llvm] [VPlan] Rename isUniform(AfterVectorization) to isSingleScalar (NFC). (PR #140134)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 16 06:26:31 PDT 2025
================
@@ -643,12 +643,11 @@ static void legalizeAndOptimizeInductions(VPlan &Plan) {
// Skip recipes that shouldn't be narrowed.
if (!Def || !isa<VPReplicateRecipe, VPWidenRecipe>(Def) ||
Def->getNumUsers() == 0 || !Def->getUnderlyingValue() ||
- (RepR && (RepR->isUniform() || RepR->isPredicated())))
+ (RepR && (RepR->isSingleScalar() || RepR->isPredicated())))
continue;
// Skip recipes that may have other lanes than their first used.
- if (!vputils::isUniformAfterVectorization(Def) &&
- !vputils::onlyFirstLaneUsed(Def))
+ if (!vputils::isSingleScalar(Def) && !vputils::onlyFirstLaneUsed(Def))
----------------
fhahn wrote:
Yes, those will need to be unified; `isSingleScalar` infers property bottom-up dependent on operands and operations, `onlyFirstLaneUsed` by looking at the users and what they demand.
https://github.com/llvm/llvm-project/pull/140134
More information about the llvm-commits
mailing list