Lunderberg commented on PR #13933:
URL: https://github.com/apache/tvm/pull/13933#issuecomment-1422999995

   This arose from some experiments regarding RewriteSimplifier that didn't end 
up materializing. During development, it was error prone to make identical 
updates across several related rules, so I put this utility together.
   
   The performance when using `PMatchesOneOf` is matched to the performance 
when specifying rules independently.  The call to 
`analyzer.rewrite_simplify(test_case.before)` was benchmarked for each 
expression in `tests/python/unittest/test_arith_rewrite_simplify.py`, with no 
deviations noticed.  Each data point in the plots below is the benchmark 
results of one of the expressions.
   
   
![image](https://user-images.githubusercontent.com/3888575/217608769-0f9141b1-a332-4ae0-b74b-5a5e93ed3ed2.png)
   
![image](https://user-images.githubusercontent.com/3888575/217608836-9f51b9bb-c37c-4319-a873-6f59f331167f.png)
   


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