[all-commits] [llvm/llvm-project] c95138: [VPlan] Remove unnecessary getNumSuccessors call (...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jan 17 03:45:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c95138392a75021c98f53b423b29995cb8a3283b
      https://github.com/llvm/llvm-project/commit/c95138392a75021c98f53b423b29995cb8a3283b
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-01-17 (Tue, 17 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanCFG.h

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list