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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 07:55:43 PST 2025


================
@@ -391,25 +391,22 @@ class LoopVectorizationLegality {
 
   /// Returns true if the loop has an uncountable early exit, i.e. an
   /// uncountable exit that isn't the latch block.
-  bool hasUncountableEarlyExit() const { return HasUncountableEarlyExit; }
+  bool hasUncountableEarlyExit() const {
+    return getUncountableEdge().has_value();
+  }
 
   /// Returns the uncountable early exiting block.
----------------
david-arm wrote:

Done

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


More information about the llvm-commits mailing list