[llvm] [LoopVectorize] Introduce check-first vectorization for multiple early-exit loops (PR #210492)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 08:03:46 PDT 2026


================

----------------
jmmartinez wrote:

Just to reply to myself, it doesn't seem that calling `collectExitGuards` multiple times changes anything.

If you want to check if there is a store inst in the block you can use `llvm::IsaPred`. From the top of my mind it was something like:
```cpp
bool HasStores = any_of(*BB, IsaPred<StoreInst>{});
```

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


More information about the llvm-commits mailing list