Message ID | 1573867416-55618-23-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
Series | RFC: Add a static analysis framework to GCC | expand |
On Fri, 2019-11-15 at 20:23 -0500, David Malcolm wrote: > gcc/ChangeLog: > * params.def (PARAM_ANALYZER_BB_EXPLOSION_FACTOR): New param. > (PARAM_ANALYZER_MAX_ENODES_PER_PROGRAM_POINT): New param. > (PARAM_ANALYZER_MAX_RECURSION_DEPTH): New param. > (PARAM_ANALYZER_MIN_SNODES_FOR_CALL_SUMMARY): New param. Doesn't this need a rethink/reimplementation after M. Liska's changes? jeff
On 12/7/19, Jeff Law <law@redhat.com> wrote: > On Fri, 2019-11-15 at 20:23 -0500, David Malcolm wrote: >> gcc/ChangeLog: >> * params.def (PARAM_ANALYZER_BB_EXPLOSION_FACTOR): New param. >> (PARAM_ANALYZER_MAX_ENODES_PER_PROGRAM_POINT): New param. >> (PARAM_ANALYZER_MAX_RECURSION_DEPTH): New param. >> (PARAM_ANALYZER_MIN_SNODES_FOR_CALL_SUMMARY): New param. > Doesn't this need a rethink/reimplementation after M. Liska's changes? > > jeff > > I think he did that in a followup patch from a later patchset...
On Sun, 2019-12-08 at 00:42 -0500, Eric Gallager wrote: > On 12/7/19, Jeff Law <law@redhat.com> wrote: > > On Fri, 2019-11-15 at 20:23 -0500, David Malcolm wrote: > > > gcc/ChangeLog: > > > * params.def (PARAM_ANALYZER_BB_EXPLOSION_FACTOR): New param. > > > (PARAM_ANALYZER_MAX_ENODES_PER_PROGRAM_POINT): New param. > > > (PARAM_ANALYZER_MAX_RECURSION_DEPTH): New param. > > > (PARAM_ANALYZER_MIN_SNODES_FOR_CALL_SUMMARY): New param. > > Doesn't this need a rethink/reimplementation after M. Liska's > > changes? > > > > jeff > > > > > > I think he did that in a followup patch from a later patchset... Yes: https://gcc.gnu.org/ml/gcc-patches/2019-11/msg02030.html
diff --git a/gcc/params.def b/gcc/params.def index 4cb48d9..6715cf6 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -1487,6 +1487,31 @@ DEFPARAM(PARAM_SSA_NAME_DEF_CHAIN_LIMIT, "a value.", 512, 0, 0) +DEFPARAM(PARAM_ANALYZER_BB_EXPLOSION_FACTOR, + "analyzer-bb-explosion-factor", + "The maximum number of 'after supernode' exploded nodes within the " + "analyzer per supernode, before terminating analysis.", + 5, 1, 0) + +DEFPARAM(PARAM_ANALYZER_MAX_ENODES_PER_PROGRAM_POINT, + "analyzer-max-enodes-per-program-point", + "The maximum number of exploded nodes per program point within the " + "analyzer, before terminating analysis of that point.", + 8, 1, 0) + +DEFPARAM(PARAM_ANALYZER_MAX_RECURSION_DEPTH, + "analyzer-max-recursion-depth", + "The maximum number of times a callsite can appear in a call stack " + " within the analyzer, before terminating analysis of a call that " + " would recurse deeper.", + 2, 1, 0) + +DEFPARAM(PARAM_ANALYZER_MIN_SNODES_FOR_CALL_SUMMARY, + "analyzer-min-snodes-for-call-summary", + "The minimum number of supernodes within a function for the " + "analyzer to consider summarizing its effects at call sites.", + 10, 1, 0) + /* Local variables: