Skip to content

Commit

Permalink
Back out "Remove ANF.inline"
Browse files Browse the repository at this point in the history
This backs out commit a8e18d8.
  • Loading branch information
ChrisPenner committed Dec 11, 2024
1 parent 93dbafb commit 8d0f08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unison-runtime/src/Unison/Runtime/Machine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2213,10 +2213,11 @@ cacheAdd0 ntys0 termSuperGroups sands cc = do
rtm <- updateMap (M.fromList $ zip rs [ntm ..]) (refTm cc)
-- check for missing references
let arities = fmap (head . ANF.arities) int <> builtinArities
inlinfo = ANF.buildInlineMap int <> builtinInlineInfo
rns = RN (refLookup "ty" rty) (refLookup "tm" rtm) (flip M.lookup arities)
combinate :: Word64 -> (Reference, SuperGroup Symbol) -> (Word64, EnumMap Word64 Comb)
combinate n (r, g) =
(n, emitCombs rns r n g)
(n, emitCombs rns r n $ ANF.inline inlinfo g)
let combRefUpdates = (mapFromList $ zip [ntm ..] rs)
let combIdFromRefMap = (M.fromList $ zip rs [ntm ..])
let newCacheableCombs =
Expand Down

0 comments on commit 8d0f08d

Please sign in to comment.