[llvm] [LV] Add initial legality checks for ee loops with stores (PR #145663)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 07:52:55 PDT 2025
================
@@ -542,7 +550,13 @@ class LoopVectorizationLegality {
/// The list above is not based on theoretical limitations of vectorization,
/// but simply a statement that more work is needed to support these
/// additional cases safely.
- bool isVectorizableEarlyExitLoop();
+ bool isVectorizableEarlyExitLoop(std::optional<LoadInst *> &);
----------------
huntergr-arm wrote:
I'm only dealing with cases involving a load of the condition at the moment; we can consider additional cases later. However, I think we'll only want to record loads here in any case, since we need to know which ones to look at in canVectorizeMemory.
https://github.com/llvm/llvm-project/pull/145663
More information about the llvm-commits
mailing list