[llvm] [VPlan] Move predication to VPlanTransform (NFC). (PR #128420)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 07:01:46 PDT 2025
================
@@ -252,6 +208,15 @@ class VPRecipeBuilder {
}
return Plan.getOrAddLiveIn(V);
}
+
+ void updateBlockMaskCache(const DenseMap<VPValue *, VPValue *> &Old2New) {
+ for (auto &[_, V] : BlockMaskCache) {
+ if (auto *New = Old2New.lookup(V)) {
+ V->replaceAllUsesWith(New);
----------------
ayalz wrote:
nit: worth removing V from Old2New now?
https://github.com/llvm/llvm-project/pull/128420
More information about the llvm-commits
mailing list