[all-commits] [llvm/llvm-project] 24b5f8: [VPlan] Make sure optimizeInductions removes wide ...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Thu Jun 30 01:15:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24b5f8e0d0bd6851e01dbe2de4c71df4b3b0760b
https://github.com/llvm/llvm-project/commit/24b5f8e0d0bd6851e01dbe2de4c71df4b3b0760b
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-06-30 (Thu, 30 Jun 2022)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
M llvm/test/Transforms/LoopVectorize/interleave-and-scalarize-only.ll
Log Message:
-----------
[VPlan] Make sure optimizeInductions removes wide ind from scalar plan.
In some cases, there may be widened users of inductions even though the
plan includes the scalar VF. In those cases, make sure we still replace
the VPWidenIntOrFpInductionRecipe with scalar steps, as otherwise we may
try to execute a VPWidenIntOrFpInductionRecipe with a scalar VF.
Alternatively the patch could also split the range if needed.
This fixes a crash exposed by D123720.
Reviewed By: Ayal
Differential Revision: https://reviews.llvm.org/D128755
More information about the All-commits
mailing list