[llvm] [VPlan] Simplify branch on False in VPlan transform (NFC). (PR #140409)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 10:45:25 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:

removeOperand is added as private, to discourage its used unless really necessary, hence befriending. Could also expose as protected or public instead

https://github.com/llvm/llvm-project/pull/140409


More information about the llvm-commits mailing list