[llvm] [LoopVectorize] Add support for vectorisation of more early exit loops (PR #88385)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jun 23 23:39:04 PDT 2024
    
    
  
================
@@ -1054,9 +1060,11 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
   return true;
 }
 
-bool LoopVectorizationLegality::canVectorizeMemory() {
-  LAI = &LAIs.getInfo(*TheLoop);
+bool LoopVectorizationLegality::canVectorizeMemory(bool IsEarlyExitLoop) {
+  if (!LAI)
+    LAI = &LAIs.getInfo(*TheLoop);
----------------
fhahn wrote:
Why is this needed?
https://github.com/llvm/llvm-project/pull/88385
    
    
More information about the llvm-commits
mailing list