Lunderberg opened a new pull request, #13217:
URL: https://github.com/apache/tvm/pull/13217

   Previously, `RemoveNoOp` would remove statements that could be locally 
analyzed as having no effect (e.g. `For` with empty loop extents).  This commit 
adds opt-in use of data-flow analysis to identify two types of statements that 
are no-ops based on their context:
   
   * Buffer stores that are overwritten without ever being read.
   
     ```python
     buf[i] = 5 # Overwritten by next statement
     buf[i] = 10
     ```
   
   * Storing a value that is already known to be present.
   
     ```python
     buf[0:16] = T.ramp(0, 16, 1)
     buf[5] = 5 # Previous load already stored this value
     ```


-- 
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