[PATCH] D67512: [Analysis] Allow -scalar-evolution-max-iterations more than once
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 15:27:18 PDT 2019
smeenai updated this revision to Diff 220581.
smeenai retitled this revision from "Allow -scalar-evolution-max-iterations more than once" to "[Analysis] Allow -scalar-evolution-max-iterations more than once".
smeenai edited the summary of this revision.
smeenai added a reviewer: jdoerfert.
smeenai added a comment.
Add test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67512/new/
https://reviews.llvm.org/D67512
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/multiple-max-iterations.ll
Index: llvm/test/Analysis/ScalarEvolution/multiple-max-iterations.ll
===================================================================
--- /dev/null
+++ llvm/test/Analysis/ScalarEvolution/multiple-max-iterations.ll
@@ -0,0 +1,2 @@
+; Ensure we can pass -scalar-evolution-max-iterations multiple times
+; RUN: opt -S -scalar-evolution -scalar-evolution-max-iterations=42 -scalar-evolution-max-iterations=42 < %s
Index: llvm/lib/Analysis/ScalarEvolution.cpp
===================================================================
--- llvm/lib/Analysis/ScalarEvolution.cpp
+++ llvm/lib/Analysis/ScalarEvolution.cpp
@@ -148,6 +148,7 @@
static cl::opt<unsigned>
MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden,
+ cl::ZeroOrMore,
cl::desc("Maximum number of iterations SCEV will "
"symbolically execute a constant "
"derived loop"),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67512.220581.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190917/e848c7bd/attachment.bin>
More information about the llvm-commits
mailing list