[llvm] [VPlan] Simplify branch on False in VPlan transform (NFC). (PR #140409)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 14:14:33 PDT 2025
================
@@ -1875,9 +1888,8 @@ static void removeBranchOnCondTrue(VPlan &Plan) {
continue;
NewOperands.push_back(Op);
}
- VPI->replaceAllUsesWith(B.createNaryOp(VPInstruction::ResumePhi,
- NewOperands, VPI->getDebugLoc(),
- VPI->getName()));
+ VPI->replaceAllUsesWith(
+ B.createScalarPhi(NewOperands, VPI->getDebugLoc(), VPI->getName()));
----------------
ayalz wrote:
This is the alternative to `removeIncomingValueFor(VPBB)`, on a VPPhi?
https://github.com/llvm/llvm-project/pull/140409
More information about the llvm-commits
mailing list