flow: don't parse inlines again if they take a long time
commit78f16f934d4f4ed0ddb35955d43e67c8877c3847
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Oct 2020 10:53:12 +0000 (23 13:53 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Oct 2020 10:53:12 +0000 (23 13:53 +0300)
tree99d6ced7a2d08861b264b7acdcf7ee32cc6dd408
parentb346bfff5fb223a42ed2327aea2a05a62650f679
flow: don't parse inlines again if they take a long time

I was trying to speed up Smatch and so I made this change which records
how long it takes to parse a function.  Then when we're looking at inlines
don't parse it again if the inline took a long time to parse.

I don't know if this code is actually worthwhile but it felt like a good
idea.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_flow.c