[llvm] [LV][NFC] Refactor structures used to maintain uncountable exit info (PR #123219)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 19 14:22:52 PST 2025


================
@@ -463,14 +457,11 @@ class LoopVectorizationLegality {
     return CountableExitingBlocks;
   }
 
-  /// Returns all the exiting blocks with an uncountable exit.
-  const SmallVector<BasicBlock *, 4> &getUncountableExitingBlocks() const {
-    return UncountableExitingBlocks;
-  }
-
-  /// Returns all the exit blocks from uncountable exiting blocks.
-  SmallVector<BasicBlock *, 4> getUncountableExitBlocks() const {
-    return UncountableExitBlocks;
+  /// Returns the loop edge with an uncountable exit, or std::nullopt if there
----------------
fhahn wrote:

```suggestion
  /// Returns the loop edge to an uncountable exit, or std::nullopt if there
```

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


More information about the llvm-commits mailing list