[llvm] CycleInfo: Fix splitCriticalEdge (PR #68584)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 07:22:14 PDT 2023


================
@@ -261,6 +261,7 @@ template <typename ContextT> class GenericCycleInfo {
   const ContextT &getSSAContext() const { return Context; }
 
   CycleT *getCycle(const BlockT *Block) const;
+  CycleT *getCycleContaining(const BlockT *A, const BlockT *B) const;
----------------
nhaehnle wrote:

Please instead make this a member `CycleT *getSmallestCommonCycle(CycleT *A, CycleT *B) const` so that it is more generally useful.

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


More information about the llvm-commits mailing list