https://github.com/halide/Halide
Raw File
Tip revision: 37a0d771d87bda71b6992621d9db13dbdaaa0693 authored by Andrew Adams on 06 May 2021, 21:16:35 UTC
Use a VectorReduce not to determine if any lanes are true in Hexagon backend
Tip revision: 37a0d77
TrimNoOps.h
#ifndef TRIM_NO_OPS_H
#define TRIM_NO_OPS_H

/** \file
 * Defines a lowering pass that truncates loops to the region over
 * which they actually do something.
 */

#include "Expr.h"

namespace Halide {
namespace Internal {

/** Truncate loop bounds to the region over which they actually do
 * something. For examples see test/correctness/trim_no_ops.cpp */
Stmt trim_no_ops(Stmt s);

}  // namespace Internal
}  // namespace Halide

#endif
back to top