[all-commits] [llvm/llvm-project] f925e5: [VPlan] Fix mutating whilst iterating over users i...
Luke Lau via All-commits
all-commits at lists.llvm.org
Tue Jan 14 06:18:13 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f925e5455415d69df5716a25ceff377989603c0a
https://github.com/llvm/llvm-project/commit/f925e5455415d69df5716a25ceff377989603c0a
Author: Luke Lau <luke at igalia.com>
Date: 2025-01-14 (Tue, 14 Jan 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
M llvm/test/Transforms/LoopVectorize/RISCV/vectorize-force-tail-with-evl-reverse-load-store.ll
Log Message:
-----------
[VPlan] Fix mutating whilst iterating over users in EVL transform (#122885)
This fixes a miscompilation extracted from 525.x264_r, where we were
failing to update the runtime VF of a VPReverseVectorPointerRecipe.
We were removing a use of VF whilst iterating over the users() iterator,
which messed up the iterator in-flight and caused us to miss some
recipes. This fixes it by copying the users into a SmallVector first.
Fixes #122681
Fixes #122682
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list