Skip to content

Commit 56342be

Browse files
yuyichaombauman
authored andcommitted
Add a missing factor of 1000 for inline_worthy
ref commit 677f537 and #11595 (comment)
1 parent 4ff9f25 commit 56342be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/inference.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,7 @@ function inlineable(f::ANY, e::Expr, atype::ANY, sv::StaticVarInfo, enclosing_as
25702570
end
25712571
end
25722572
free = effect_free(aei,sv,true)
2573-
if ((occ==0 && is(aeitype,Bottom)) || islocal || (occ > 1 && !inline_worthy(aei, occ*2)) ||
2573+
if ((occ==0 && is(aeitype,Bottom)) || islocal || (occ > 1 && !inline_worthy(aei, occ*2000)) ||
25742574
(affect_free && !free) || (!affect_free && !effect_free(aei,sv,false)))
25752575
if occ != 0 # islocal=true is implied by occ!=0
25762576
if !islocal

0 commit comments

Comments
 (0)