math: move more stuff to get_rl_sval()
commit535ecabadb83d380e4d0811ab80b4e54773c4ef1
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Feb 2019 05:42:51 +0000 (26 08:42 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Feb 2019 05:42:51 +0000 (26 08:42 +0300)
tree48a1763f1fef008c29948ee168965c63369d34b1
parent235274a0b5f608931cb3cf2eb2c6a2b24294e2ca
math: move more stuff to get_rl_sval()

This change can make a big improvement in memory use for some files which
call ilog2() a lot.  The thing about that macro is that there are a ton
of intermediary steps, but the value is always known.

The big things here are that I move get_implied_value_internal() and
get_value() to use get_rl_sval() instead of get_rl_helper().  For
get_value() we really shouldn't ever generate an rl.

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