[llvm] [VPlan] Fix VPInstruction::AnyOf combine undoing freeze (PR #223640)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 06:50:04 PDT 2026
================
@@ -3407,8 +3409,15 @@ bool VPlanTransforms::handleUncountableEarlyExits(
for (const EarlyExitInfo &Info : drop_begin(Exits))
Combined = LatchBuilder.createLogicalOr(Combined, Info.CondToExit);
- VPValue *IsAnyExitTaken =
- LatchBuilder.createNaryOp(VPInstruction::AnyOf, {Combined});
+ // Even though the logical or prevents per-lane posion propagation, we need to
----------------
david-arm wrote:
nit: I think this should be `poison`. Also, I'm not sure what you mean by `prevents per-lane posion propagation` since the example below shows poison is propagated in individual lanes, i.e. the 3rd and 4th poison lanes of `Exits[1].CondToExit` are propagated into `Combined`.
https://github.com/llvm/llvm-project/pull/223640
More information about the llvm-commits
mailing list