[llvm] [SCEV] Infer loop max trip count from memory accesses (PR #70361)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 2 11:56:07 PST 2024
================
@@ -249,6 +250,13 @@ static cl::opt<bool> UseContextForNoWrapFlagInference(
cl::desc("Infer nuw/nsw flags using context where suitable"),
cl::init(true));
+static cl::opt<bool> UseMemoryAccessUBForBEInference(
+ "scalar-evolution-infer-max-trip-count-from-memory-access", cl::Hidden,
+ cl::desc("Infer loop max trip count from memory access"), cl::init(false));
+
+DEBUG_COUNTER(MemoryAccessCounter, "memory-access-ub",
----------------
shiltian wrote:
This will be removed once it pass the LLVM test suite.
https://github.com/llvm/llvm-project/pull/70361
More information about the llvm-commits
mailing list