Skip to content

Commit

Permalink
add filterUnreachable to the Reg pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Jan 11, 2024
1 parent 13f0fec commit 8b402c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Asm/Pipeline.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Juvix.Compiler.Pipeline.EntryPoint
-- | Perform transformations on JuvixAsm necessary before the translation to
-- JuvixReg
toReg' :: (Members '[Error AsmError, Reader Options] r) => InfoTable -> Sem r InfoTable
toReg' = validate >=> computeStackUsage >=> computePrealloc
toReg' = validate >=> filterUnreachable >=> computeStackUsage >=> computePrealloc

toReg :: (Members '[Error JuvixError, Reader EntryPoint] r) => InfoTable -> Sem r InfoTable
toReg = mapReader fromEntryPoint . mapError (JuvixError @AsmError) . toReg'

0 comments on commit 8b402c9

Please sign in to comment.