chore(kernel/expr): cleanup
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3354832c21
commit
bab430af43
1 changed files with 1 additions and 3 deletions
|
@ -272,11 +272,9 @@ static expr_cache LEAN_THREAD_LOCAL g_expr_cache(LEAN_INITIAL_EXPR_CACHE_CAPACIT
|
|||
static bool LEAN_THREAD_LOCAL g_expr_cache_enabled = true;
|
||||
inline expr cache(expr const & e) {
|
||||
if (g_expr_cache_enabled) {
|
||||
if (auto r = g_expr_cache.insert(e)) {
|
||||
// std::cout << e << "\n===>\n" << *r << "\n";
|
||||
if (auto r = g_expr_cache.insert(e))
|
||||
return *r;
|
||||
}
|
||||
}
|
||||
return e;
|
||||
}
|
||||
bool enable_expr_caching(bool f) {
|
||||
|
|
Loading…
Reference in a new issue