Commit e58e799
committed
[AMDGPU] Insert
This patch adds a workaround for a hazzard on GFX1250, which inserts an `s_wait_xcnt(0)` instruction before any atomic operation that might write to memory.
Fixes SWDEV-543703.s_wait_xcnt(0) before atomics to work around write-combining miss hazard1 parent 73e70e0 commit e58e799
File tree
13 files changed
+356
-2
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
- GlobalISel
13 files changed
+356
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
898 | 904 | | |
899 | 905 | | |
900 | 906 | | |
| |||
2145 | 2151 | | |
2146 | 2152 | | |
2147 | 2153 | | |
| 2154 | + | |
2148 | 2155 | | |
2149 | 2156 | | |
2150 | 2157 | | |
| |||
2945 | 2952 | | |
2946 | 2953 | | |
2947 | 2954 | | |
| 2955 | + | |
| 2956 | + | |
2948 | 2957 | | |
2949 | 2958 | | |
2950 | 2959 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
1834 | 1834 | | |
1835 | 1835 | | |
1836 | 1836 | | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1837 | 1841 | | |
1838 | 1842 | | |
1839 | 1843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2086 | 2086 | | |
2087 | 2087 | | |
2088 | 2088 | | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
2089 | 2095 | | |
2090 | 2096 | | |
2091 | 2097 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1764 | 1764 | | |
1765 | 1765 | | |
1766 | 1766 | | |
| 1767 | + | |
1767 | 1768 | | |
1768 | 1769 | | |
1769 | 1770 | | |
| |||
1802 | 1803 | | |
1803 | 1804 | | |
1804 | 1805 | | |
| 1806 | + | |
1805 | 1807 | | |
1806 | 1808 | | |
1807 | 1809 | | |
| |||
1842 | 1844 | | |
1843 | 1845 | | |
1844 | 1846 | | |
| 1847 | + | |
1845 | 1848 | | |
1846 | 1849 | | |
1847 | 1850 | | |
| |||
2088 | 2091 | | |
2089 | 2092 | | |
2090 | 2093 | | |
| 2094 | + | |
2091 | 2095 | | |
2092 | 2096 | | |
2093 | 2097 | | |
| |||
2126 | 2130 | | |
2127 | 2131 | | |
2128 | 2132 | | |
| 2133 | + | |
2129 | 2134 | | |
2130 | 2135 | | |
2131 | 2136 | | |
| |||
2168 | 2173 | | |
2169 | 2174 | | |
2170 | 2175 | | |
| 2176 | + | |
2171 | 2177 | | |
2172 | 2178 | | |
2173 | 2179 | | |
| |||
0 commit comments