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

Safe Haskell | Safe-Inferred
Language | GHC2021

Futhark.Pass.LiftAllocations

Description

This pass attempts to lift allocations and asserts as far towards the top in their body as possible. This helps memory short circuiting do a better job, as it is sensitive to statement ordering. It does not try to hoist allocations outside across body boundaries.

# Documentation

liftAllocationsSeqMem :: Pass SeqMem SeqMem Source #

liftAllocationsGPUMem :: Pass GPUMem GPUMem Source #

liftAllocationsMCMem :: Pass MCMem MCMem Source #