Skip to content

Commit 683d5c0

Browse files
yuyichaotkelman
authored andcommitted
Add a missing factor of 1000 for inline_worthy
ref commit 677f537 and JuliaLang#11595 (comment)
1 parent 6379704 commit 683d5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/inference.jl

Lines changed: 1 addition & 1 deletion
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)