[PATCH] D67512: [Analysis] Allow -scalar-evolution-max-iterations more than once

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 11:25:29 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd89f2d872df3: [Analysis] Allow -scalar-evolution-max-iterations more than once (authored by smeenai).

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.220890.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190919/07abc85e/attachment.bin>


More information about the llvm-commits mailing list