llvm-project
d0f122b9 - [LV] Update incoming blocks in VPWidenPHIRecipe in reassociateBlocks (#125481)

Commit
1 year ago
[LV] Update incoming blocks in VPWidenPHIRecipe in reassociateBlocks (#125481) This is extracted from #118638 After c7ebe4f we will crash in fixNonInductionPHIs if we use a VPWidenPHIRecipe with the vector preheader as an incoming block, because the phi will reference the old non-IRBB vector preheader. This fixes this by updating VPBlockUtils::reassociateBlocks to update any VPWidenPHIRecipes's incoming blocks. This assumes that if the VPWidenPHIRecipe is in a VPRegionBlock, it's in the entry block, and that we are replacing a VPBasicBlock with another VPBasicBlock.
Author
Parents
Loading