This way the unrolling can be restricted for loops which will take at most a given number of steps. It is defined as 128 in this patch and it seems to have a good number for that purpose.
Details
Details
- Reviewers
NoQ zaks.anna dcoughlin - Commits
- rG0db84863d0da: [StaticAnalyzer] LoopUnrolling: Keep track the maximum number of steps for each…
rC311883: [StaticAnalyzer] LoopUnrolling: Keep track the maximum number of steps for each…
rL311883: [StaticAnalyzer] LoopUnrolling: Keep track the maximum number of steps for each…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM, thanks! Minor nit included. I hope our matchers actually cover all the cases (not a big deal if they don't though).
lib/StaticAnalyzer/Core/LoopUnrolling.cpp | ||
---|---|---|
26 ↗ | (On Diff #112789) | I'd prefer a (static) const int, dealing preprocessor doesn't seem to be necessary here. |