[llvm-branch-commits] [llvm] [VPlan] Skip poison incoming values computeBlendEdges (PR #237121)

David Sherwood via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Nov 6 06:56:29 PST 2026


================
@@ -310,6 +310,8 @@ VPPredicator::computeBlendEdges(VPPhi *Phi) {
     }
   }
 
+  Edges.remove_if([](auto X) { return match(X.second, m_Poison()); });
----------------
david-arm wrote:

nit: Would `const auto &X` be faster here to avoid the copy?

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


More information about the llvm-branch-commits mailing list