[llvm] [VPlan] Strip dead code in replaceSymbolicStrides (NFC) (PR #164296)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 02:57:12 PDT 2025


================
@@ -2909,13 +2909,6 @@ void VPlanTransforms::canonicalizeEVLLoops(VPlan &Plan) {
 void VPlanTransforms::replaceSymbolicStrides(
     VPlan &Plan, PredicatedScalarEvolution &PSE,
     const DenseMap<Value *, const SCEV *> &StridesMap) {
-  // Replace VPValues for known constant strides guaranteed by predicate scalar
----------------
fhahn wrote:

The comment is the explanation for the check below, which I think should be kept to ensure we only replace strides we know will be guarded by runtime checks

https://github.com/llvm/llvm-project/pull/164296


More information about the llvm-commits mailing list