The current bounds checking infrastructure inserts checks like: ``` for (i, 0, bounds[n]) { if (likely(i < bounds[n]) { ... } } ``` into the TVM IR which is currently not removed by simplification infrastructure. This is a little unclean, as these are trivially true since for a loop var `i` with a given min and extent, we are guaranteed that `i >= min` and `i < min + extent`. Thus, we can insert these checks into the IR and use them to eliminate trivial bounds checks early on.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
node | Loading commit data... | |
relay | Loading commit data... | |
runtime | Loading commit data... | |
api_registry.h | Loading commit data... | |
arithmetic.h | Loading commit data... | |
attrs.h | Loading commit data... | |
base.h | Loading commit data... | |
buffer.h | Loading commit data... | |
build_module.h | Loading commit data... | |
c_dsl_api.h | Loading commit data... | |
channel.h | Loading commit data... | |
codegen.h | Loading commit data... | |
data_layout.h | Loading commit data... | |
dtype.h | Loading commit data... | |
expr.h | Loading commit data... | |
expr_operator.h | Loading commit data... | |
ir.h | Loading commit data... | |
ir_functor_ext.h | Loading commit data... | |
ir_mutator.h | Loading commit data... | |
ir_pass.h | Loading commit data... | |
ir_visitor.h | Loading commit data... | |
logging.h | Loading commit data... | |
lowered_func.h | Loading commit data... | |
operation.h | Loading commit data... | |
packed_func_ext.h | Loading commit data... | |
schedule.h | Loading commit data... | |
schedule_pass.h | Loading commit data... | |
target_info.h | Loading commit data... | |
tensor.h | Loading commit data... | |
tensor_intrin.h | Loading commit data... |