[llvm] [LV] Support interleaving with conditional scalar assignments (PR #184099)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 08:57:19 PST 2026


================
@@ -326,6 +326,10 @@ void UnrollState::unrollRecipeByUF(VPRecipeBase &R) {
     Copy->insertBefore(VPBB, InsertPt);
     addRecipeForPart(&R, Copy, Part);
 
+    // Phi operands are updated once all other recipes have been unrolled.
+    if (isa<VPWidenPHIRecipe>(Copy))
+      continue;
----------------
MacDue wrote:

The previous uses of `VPWidenPHIRecipe` (there's not many) are only added after the `unrollByUF` pass has run, so didn't need to be handled by unrolling. 

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


More information about the llvm-commits mailing list