Commit 4b55a13
authored
[Codegen] Rewrite VectorLayoutAnalysis to a simpler implementation (#22420)
- Cleansup VectorLayoutAnalysis implementation to stop using upstream
DataFlowAnalysis framework and instead use a simple worklist to track
changes and propagate layout. This works very similar to the previous
implementation, but is much less convoluted and much smaller.
- Also fixes a bug in VectorLayoutAnalysis after the upstream
DataFlowAnalysis framework moved to ProgramPoint. ProgramPoint tracks
the Block iterator but we add operations during the propagation, which
meant all ProgramPoint's were invalidated and the analysis was working
out of pure luck. It just happened that we added almost everything to
the worklist, making it run to fixpoint eventually.
ci-extra: test_torch1 parent ef639bb commit 4b55a13
File tree
2 files changed
+262
-1297
lines changed- compiler/src/iree/compiler/Codegen/Common
2 files changed
+262
-1297
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments