[llvm] [LV] Initial support for stores in early exit loops (PR #137774)
    Graham Hunter via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 14 07:21:52 PDT 2025
    
    
  
================
@@ -407,6 +407,13 @@ class LoopVectorizationLegality {
     return hasUncountableEarlyExit() ? getUncountableEdge()->second : nullptr;
   }
 
+  /// Returns true if this is an early exit loop containing a store.
+  bool isConditionCopyRequired() const { return RequiresEarlyExitConditionCopy; }
+
+  /// Returns the load instruction, if any, nearest to an uncountable early
+  /// exit.
----------------
huntergr-arm wrote:
The load closest in the IR graph to the exit (ideally, the load whose result is used directly in a comparison). I didn't spend much time on the naming ;)
https://github.com/llvm/llvm-project/pull/137774
    
    
More information about the llvm-commits
mailing list