rewriting: dead code removal in GreedyRewritePatternApplier#5485
rewriting: dead code removal in GreedyRewritePatternApplier#5485superlopuh merged 40 commits intomainfrom
Conversation
4b1db7d to
3e4ac62
Compare
|
Many filecheck tests assume dead code is not removed. |
|
Yeah I think so |
|
I wonder if agents these days can do this easily |
|
Ah no sorry, I think remove the use of the dead code, or add "test.op" user dependening on the test |
Co-authored-by: Mathieu Fehr <mathieu.fehr@gmail.com>
Co-authored-by: Mathieu Fehr <mathieu.fehr@gmail.com>
3e4ac62 to
d585c8c
Compare
|
Marking this as draft until riscv fixes have been merged. |
|
One of the riscv things was much easier to fix by avoiding the use of the greedy rewriter, I'll take a look at the rest of the backend things over the next week. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5485 +/- ##
==========================================
- Coverage 86.16% 86.15% -0.02%
==========================================
Files 395 395
Lines 56464 56473 +9
Branches 6504 6506 +2
==========================================
+ Hits 48655 48657 +2
- Misses 6276 6281 +5
- Partials 1533 1535 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // CHECK-NEXT: mv t3, a1 | ||
| // CHECK-NEXT: li t1, 128 | ||
| // CHECK-NEXT: li t0, 512 | ||
| // CHECK-NEXT: li t4, 64 |
There was a problem hiding this comment.
this seems like an actual optimisation
|
@math-fehr, are you happy to merge this with the temporary flag to disable dce in the greedy rewriter? I think it would be good to deprecate that at some point but for now seems like a good way to move forward. |
|
Sorry for missing this, this is good for me! |
…ect#5485) Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com> Co-authored-by: Mathieu Fehr <mathieu.fehr@gmail.com>
No description provided.