Commit e0aed47
committed
[LoopUtils] Cache VFs in addDiffRuntimeChecks (NFC)
Caching the runtime-VF, which is actually a vscale expression is safe,
when we previously thought that it was unsafe, partly due to a bad FIXME
in one of the tests. Strip the FIXME, and demonstrate that
GeneratedRTChecks::create does the right thing, by moving the logic for
caching runtime-VF to LoopUtils. As a result, we improve the code in
GeneratedRTChecks::create, to avoid a non-intuitive footgun.1 parent 80bdfcd commit e0aed47
File tree
3 files changed
+19
-18
lines changed- llvm
- lib/Transforms
- Utils
- Vectorize
- test/Transforms/LoopVectorize/AArch64
3 files changed
+19
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
| 2051 | + | |
| 2052 | + | |
2051 | 2053 | | |
2052 | 2054 | | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
2053 | 2060 | | |
2054 | 2061 | | |
2055 | | - | |
2056 | | - | |
| 2062 | + | |
2057 | 2063 | | |
2058 | 2064 | | |
2059 | 2065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
1927 | | - | |
1928 | | - | |
1929 | | - | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1942 | 1938 | | |
1943 | 1939 | | |
1944 | 1940 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments