You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ma...@apache.org on 2022/02/10 12:47:07 UTC
[tvm] branch main updated (222152b -> 09f7be2)
This is an automated email from the ASF dual-hosted git repository.
masahi pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git.
from 222152b [ci] Add more details when showing node info (#10195)
add 09f7be2 Implementation of Common Subexpression Elimination for TIR (#9482)
No new revisions were added by this update.
Summary of changes:
include/tvm/tir/transform.h | 8 +
python/tvm/tir/transform/transform.py | 11 +
src/driver/driver_api.cc | 5 +
src/tir/analysis/check_contains.cc | 98 +++
src/tir/analysis/check_contains.h | 60 ++
src/tir/transforms/common_subexpr_elim.cc | 619 +++++++++++++++
src/tir/transforms/common_subexpr_elim.h | 89 +++
src/tir/transforms/common_subexpr_elim_tools.cc | 836 +++++++++++++++++++++
src/tir/transforms/common_subexpr_elim_tools.h | 217 ++++++
src/tir/transforms/replace_selected_expr.cc | 109 +++
src/tir/transforms/replace_selected_expr.h | 75 ++
tests/python/relay/test_ir_nodes.py | 22 +-
tests/python/relay/test_ir_text_printer.py | 19 +-
tests/python/topi/python/test_topi_relu.py | 15 +-
tests/python/unittest/test_lower_build.py | 20 +-
tests/python/unittest/test_te_tensor.py | 8 +-
.../test_tir_transform_common_subexpr_elim.py | 312 ++++++++
.../test_tir_transform_lower_warp_memory.py | 28 +-
.../integration/test_benchmark_topi_conv2d.py | 13 +-
.../test_benchmark_topi_conv2d_transpose.py | 15 +-
.../test_benchmark_topi_group_conv2d.py | 13 +-
vta/tests/python/unittest/test_vta_insn.py | 4 +-
vta/tutorials/frontend/deploy_classification.py | 4 +-
vta/tutorials/frontend/deploy_detection.py | 2 +-
vta/tutorials/optimize/convolution_opt.py | 7 +-
25 files changed, 2544 insertions(+), 65 deletions(-)
create mode 100644 src/tir/analysis/check_contains.cc
create mode 100644 src/tir/analysis/check_contains.h
create mode 100644 src/tir/transforms/common_subexpr_elim.cc
create mode 100644 src/tir/transforms/common_subexpr_elim.h
create mode 100644 src/tir/transforms/common_subexpr_elim_tools.cc
create mode 100644 src/tir/transforms/common_subexpr_elim_tools.h
create mode 100644 src/tir/transforms/replace_selected_expr.cc
create mode 100644 src/tir/transforms/replace_selected_expr.h
create mode 100644 tests/python/unittest/test_tir_transform_common_subexpr_elim.py