futhark-0.9.1: An optimising compiler for a functional, array-oriented language.

Safe HaskellNone
LanguageHaskell2010

Futhark.Optimise.MemoryBlockMerging.CrudeMovingUp

Description

Move variables as much as possible upwards in a program.

Synopsis

Documentation

moveUpInFunDef :: FunDef ExplicitMemory -> (Body ExplicitMemory -> Maybe [FParam ExplicitMemory] -> [VName]) -> FunDef ExplicitMemory Source #

Call findHoistees for every body, and then hoist every one of the found hoistees (variables).