Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom committed Aug 27, 2024
1 parent f788c87 commit d4ed513
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Compiler/Optimize/InnerLambdasToTopLevelFuncs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,10 @@ module Pass1_DetermineTLRAndArities =
let nFormals = vss.Length
let nMaxApplied = GetMaxNumArgsAtUses xinfo f
let arity = Operators.min nFormals nMaxApplied
if atTopLevel then
Some (f, arity)
else if arity<>0 || not (isNil tps) then
Some (f, arity)
else
None
if atTopLevel then Some (f, arity)
elif g.realsig && arity > 0 then None // This needs some investigation I sorta understand but would have a hard time explaining it
elif arity<>0 || not (isNil tps) then Some (f, arity)
else None

/// Check if f involves any value recursion (so can skip those).
/// ValRec considered: recursive && some f in mutual binding is not bound to a lambda
Expand Down

0 comments on commit d4ed513

Please sign in to comment.