From 56342be6688bce36352ce6ef70edda86da16af07 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Fri, 5 Jun 2015 11:27:53 -0400 Subject: [PATCH] Add a missing factor of 1000 for inline_worthy ref commit 677f5373d3c5d87b99e798edc789ca6bdf58f5d6 and https://github.com/JuliaLang/julia/issues/11595#issuecomment-109515378 --- base/inference.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/inference.jl b/base/inference.jl index f03d3aad33731..d6f3a81a10005 100644 --- a/base/inference.jl +++ b/base/inference.jl @@ -2570,7 +2570,7 @@ function inlineable(f::ANY, e::Expr, atype::ANY, sv::StaticVarInfo, enclosing_as end end free = effect_free(aei,sv,true) - if ((occ==0 && is(aeitype,Bottom)) || islocal || (occ > 1 && !inline_worthy(aei, occ*2)) || + if ((occ==0 && is(aeitype,Bottom)) || islocal || (occ > 1 && !inline_worthy(aei, occ*2000)) || (affect_free && !free) || (!affect_free && !effect_free(aei,sv,false))) if occ != 0 # islocal=true is implied by occ!=0 if !islocal