[llvm] [VPlan] Simplify branch on False in VPlan transform (NFC). (PR #140409)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 07:48:14 PDT 2025
================
@@ -199,8 +200,12 @@ raw_ostream &operator<<(raw_ostream &OS, const VPRecipeBase &R);
/// This class augments VPValue with operands which provide the inverse def-use
/// edges from VPValue's users to their defs.
class VPUser {
+ friend class VPPhiAccessors;
----------------
fhahn wrote:
current VPPhiAccessors::removeIncomingValueFor supports any phi-like recipe, and is used for VPPhi and VPIRPhi. Updated the code in `removeBranchOnConst` to make use casting to `VPPhiAccessors`.
https://github.com/llvm/llvm-project/pull/140409
More information about the llvm-commits
mailing list