Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions python/tvm/relax/transform/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,6 @@ def LowerAllocTensor() -> tvm.ir.transform.Pass:
return _ffi_api.LowerAllocTensor() # type: ignore


def KillAfterLastUse() -> tvm.ir.transform.Pass:
"""Drop all tensor/storage objects after last use

Returns
-------
ret : tvm.ir.transform.Pass
"""
return _ffi_api.KillAfterLastUse() # type: ignore


def VMBuiltinLower() -> tvm.ir.transform.Pass:
"""Lowering generic intrinsic to VM intrinsics.

Expand Down
1 change: 0 additions & 1 deletion python/tvm/relax/vm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ def foo(x: Tensor((3, 4), "float32"), y: Tensor((3, 4), "float32")):
passes.append(relax.transform.RewriteCUDAGraph())

passes.append(relax.transform.LowerAllocTensor())
passes.append(relax.transform.KillAfterLastUse())

passes.append(relax.transform.VMBuiltinLower())
passes.append(relax.transform.VMShapeLower())
Expand Down
289 changes: 0 additions & 289 deletions src/relax/transform/kill_after_last_use.cc

This file was deleted.

13 changes: 0 additions & 13 deletions src/relax/transform/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,19 +388,6 @@ inline String GetCodegenName(const std::string& composite_name) {
*/
Expr EliminateCommonSubexpr(const Expr& expr, bool call_only = false);

/* \brief Remove use of trivial bindings
*
* Utility for simplifying relax expressions by folding var bindings
* and match shape nodes. May include other forms of simplification
* in the future. Ideally should be used before constant folding and
* eliminating unused bindings.
*
* \param expr The expression to be canonicalized
*
* \ret The canonicalized expression
*/
Expr CanonicalizeBindings(const Expr& expr);

} // namespace relax
} // namespace tvm

Expand Down
55 changes: 0 additions & 55 deletions tests/python/relax/test_kill_after_last_use.py

This file was deleted.