[llvm] [LoopVectorize] Add support for vectorisation of simple early exit loops (PR #88385)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 06:29:14 PDT 2024


================
@@ -2567,6 +2729,13 @@ void LoopAccessInfo::analyzeLoop(AAResults *AA, LoopInfo *LI,
   // check.
   Accesses.buildDependenceSets();
 
+  if (SpeculativeEarlyExitingBB) {
+    assert(!Stores.size() && "Did not expect stores in an early exit loop!");
----------------
huntergr-arm wrote:

I think this effectively duplicates the previous assert?

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


More information about the llvm-commits mailing list