Commit 96fba51
committed
[AMDGPU] Relax lds dma waitcnt with no aliasing pair (llvm#131842)
If we cannot find any lds DMA instruction that is aliased by some load
from lds, we will still insert vmcnt(0). This is overly cautious since
handling inter-thread dependences is normally managed by the memory
model instead of the waitcnt pass, so this change updates the behavior
to be more inline with how other types of memory events are handled.
cherry-pick: e75f586 to amd-mainline1 parent 7ee81a4 commit 96fba51
File tree
2 files changed
+28
-8
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
2 files changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
1750 | | - | |
1751 | 1750 | | |
1752 | 1751 | | |
1753 | 1752 | | |
| |||
1757 | 1756 | | |
1758 | 1757 | | |
1759 | 1758 | | |
1760 | | - | |
1761 | | - | |
| 1759 | + | |
1762 | 1760 | | |
1763 | | - | |
1764 | 1761 | | |
1765 | | - | |
1766 | | - | |
| 1762 | + | |
1767 | 1763 | | |
| 1764 | + | |
1768 | 1765 | | |
1769 | 1766 | | |
1770 | 1767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
| |||
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
154 | 177 | | |
0 commit comments