Revision 5deee77b677da97c4dadc966f76d8bf01d855c57 authored by Steven Johnson on 01 April 2020, 00:47:39 UTC, committed by Steven Johnson on 01 April 2020, 00:47:39 UTC
1 parent cb6f4a9
RemoveDeadAllocations.h
#ifndef HALIDE_REMOVE_DEAD_ALLOCATIONS_H
#define HALIDE_REMOVE_DEAD_ALLOCATIONS_H
#include "Expr.h"
/** \file
* Defines the lowering pass that removes allocate and free nodes that
* are not used.
*/
namespace Halide {
namespace Internal {
/** Find Allocate/Free pairs that are never loaded from or stored to,
* and remove them from the Stmt. This doesn't touch Realize/Call
* nodes and so must be called after storage_flattening.
*/
Stmt remove_dead_allocations(const Stmt &s);
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...