[llvm] [VPlan] Move tail folding out of VPlanPredicator. NFC (PR #176143)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 6 03:51:10 PST 2026
================
@@ -232,15 +205,22 @@ void VPPredicator::createSwitchEdgeMasks(VPInstruction *SI) {
void VPPredicator::convertPhisToBlends(VPBasicBlock *VPBB) {
SmallVector<VPPhi *> Phis;
for (VPRecipeBase &R : VPBB->phis())
- Phis.push_back(cast<VPPhi>(&R));
+ if (auto *PhiR = dyn_cast<VPPhi>(&R))
+ Phis.push_back(PhiR);
----------------
lukel97 wrote:
I removed this part of the diff by keeping the `if (VPBB == Header) continue` part
https://github.com/llvm/llvm-project/pull/176143
More information about the llvm-commits
mailing list