- User Since
- Sep 12 2019, 12:01 PM (71 w, 2 d)
Sep 19 2019
scalar-evolution-max-iterations flag allows us to override the 100 iterations limit for constant derived loop, which we need for optimization, as we have many constant derived loops with > 100 iterations
Sep 12 2019
@xbolva00 Thanks for your input!
The idea is similar to this change: https://reviews.llvm.org/D34219. I don't view it as a workaround, but rather it increases flexibility in the flag usage. The expected behavior is already well documented:
The cl::ZeroOrMore modifier ... indicates that your program will allow the option to be specified zero or more times.
If an option is specified multiple times for an option of the cl::opt class, only the last value will be retained.
I see a bunch of other flags use cl::ZeroOrMore as well so I believe this is no different.