[VPlan] Remove unnecessary getNumSuccessors call (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 17 Jan 2023 11:44:49 +0000 (11:44 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 17 Jan 2023 11:44:50 +0000 (11:44 +0000)
commitc95138392a75021c98f53b423b29995cb8a3283b
tree8bb22fd65cfa0a0abbd4f1bb74882088a710ed98
parente49367e7f379e54e482480a502f64196db2c5663
[VPlan] Remove unnecessary getNumSuccessors call (NFC).

If ParentWithSuccs is nullptr, the number of successors is guaranteed to
be 0. Simplify the code as suggested by @Ayal in D140511.
llvm/lib/Transforms/Vectorize/VPlanCFG.h