]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: don't track string literals in the store [PR106359]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 20 Jul 2022 00:22:18 +0000 (20:22 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 20 Jul 2022 00:22:18 +0000 (20:22 -0400)
commit68871a008e686dbe56ff0b502f2864176a140716
tree3e344cb2ff5892d013c261908ca32ea3fa3a574d
parent7c0c10db24f5c7f8c30810699fb0aff3c900d41a
analyzer: don't track string literals in the store [PR106359]

Doing so speeds up -fanalyzer from taking over 4 hours to under a
minute on the Linux kernel's sound/soc/codecs/cs47l90.c

gcc/analyzer/ChangeLog:
PR analyzer/106359
* region.h (string_region::tracked_p): New.
* store.cc (binding_cluster::binding_cluster): Move here from
store.h.  Add assertion that base_region is tracked_p.
* store.h (binding_cluster::binding_cluster): Move to store.cc.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/region.h
gcc/analyzer/store.cc
gcc/analyzer/store.h