[llvm] [LV] Provide utility routine to find uncounted exit recipes (PR #152530)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 00:17:20 PDT 2025


================
@@ -101,6 +101,16 @@ bool isUniformAcrossVFsAndUFs(VPValue *V);
 /// Returns the header block of the first, top-level loop, or null if none
 /// exist.
 VPBasicBlock *getFirstLoopHeader(VPlan &Plan, VPDominatorTree &VPDT);
+
+/// Returns the VPValue representing the uncountable exit comparison used by
+/// AnyOf if the recipes it depends on can be traced back to live-ins and
+/// the canonical IV and it is deemed safe to copy those recipes into the
+/// vector preheader. The recipes are stored in \p Recipes, and recipes
----------------
fhahn wrote:

```suggestion
/// the canonical IV. The recipes are stored in \p Recipes, and recipes
```

I think the latest version doesn't check this?

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


More information about the llvm-commits mailing list