https://github.com/halide/Halide
Raw File
Tip revision: 0a1a77e47183888dc343eb29d1e1076e868a0ac4 authored by Alex Reinking on 15 February 2021, 23:13:55 UTC
Bump timestamp on branch to appease GitHub
Tip revision: 0a1a77e
UnifyDuplicateLets.h
#ifndef HALIDE_UNIFY_DUPLICATE_LETS_H
#define HALIDE_UNIFY_DUPLICATE_LETS_H

/** \file
 * Defines the lowering pass that coalesces redundant let statements
 */

#include "Expr.h"

namespace Halide {
namespace Internal {

/** Find let statements that all define the same value, and make later
 * ones just reuse the symbol names of the earlier ones. */
Stmt unify_duplicate_lets(const Stmt &s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top