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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 00:49:58 PDT 2024


================
@@ -181,6 +181,16 @@ static cl::opt<bool> EnableEpilogueVectorization(
     "enable-epilogue-vectorization", cl::init(true), cl::Hidden,
     cl::desc("Enable vectorization of epilogue loops."));
 
+static cl::opt<bool> EnableEarlyExitVectorization(
+    "enable-early-exit-vectorization", cl::init(false), cl::Hidden,
+    cl::desc("Enable vectorization of early exit loops."));
+
+static cl::opt<bool> AssumeNoMemFault(
+    "vectorizer-no-mem-fault", cl::init(false), cl::Hidden,
----------------
fhahn wrote:

Is the intention here to use this for writing unit tests or something else? for unit tests, here are multiple ways to tell LLVM that memory is dereferenceable for a range (with a constant number of elements), which should cover most cases when writing tests?

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


More information about the llvm-commits mailing list