[Opt] Remove redundant cfg optimization, to fix struct vec crash bug#8691
Conversation
for more information, see https://pre-commit.ci
|
Awesome, thanks! 🙌 Note: I don't have a 'merge' button available, although it looks like everything is passing/approved. |
|
@feisuzhu Do you have any concerns on this PR? More tests perhaps? 😀 Maybe we need at least:
Note that there are already optmization tests in https://github.com/taichi-dev/taichi/blob/master/tests/python/test_optimization.py though I agree they appear to me, by the nature of being quite short relative to the optimization code itself, to plausibly be not very complete? |
Nope, I'm the owner of CI subsystem. If @bobcao3 says it's ok, it's ok ;] |
|
Awesome. Thank you 🙌 |
…ev/taichi/issues/8675
Issue: #8675
Brief Summary
Remove redundant cfg optimization, to fix struct vec crash bug
copilot:summary
Walkthrough
In #8675 , the cfg optimization pass causes a crash. Using following script:
Running on master:
Running with this branch:
Before simply removing this pass, I was originally going to fix it, however I ran the various tests in tests/python/test_optmization.py, printing out the ir before and after the cfg pass, and I saw no effect of this cfg pass, in any of the tests I tried running.
So, I conclude that:
copilot:walkthrough