mbs-octoml opened a new pull request #9542:
URL: https://github.com/apache/tvm/pull/9542


   As part of #9483 we need to prepare some critical Relay passes for running 
after
   lowering and conversion to DPS. For DCE we need to make sure we never remove
   side-effecting let-bound expressions, such as for allocation or evaluation of
   an external function with unknown effectfulness.
   
   Introduce a new purity pre-pass. It makes a half-hearted attempt at 
accounting
   for functions by tracking both 'eval' and 'call' purity, but must fallback to
   assuming call-impurity in more difficult cases (eg calling a function passed 
as
   a parameter, calling a function projected from a tuple, etc). However it 
seems
   plenty good enough.
   
   Purity must also be accounted for when determining the usage count of 
let-bound
   variables, so reworked that. Collapsed the let-bound value accumulation pass 
into
   the usage counting pass to make up for inserting the new purity analysis 
pass.
   
   Thanks for contributing to TVM!   Please refer to guideline 
https://tvm.apache.org/docs/contribute/ for useful information and tips. After 
the pull request is submitted, please request code reviews from 
[Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers)
 by @ them in the pull request thread.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to