Commit 4b8cac2
authored
[VPlan] Don't reset canonical IV start value. (llvm#161589)
Instead of re-setting the start value of the canonical IV when
vectorizing the epilogue we can emit an Add VPInstruction to provide
canonical IV value, adjusted by the resume value from the main loop.
This is in preparation to make the canonical IV a VPValue defined by
loop regions. It ensures that the canonical IV always starts at 0.
PR: llvm#1615891 parent e6b49ce commit 4b8cac2
File tree
2 files changed
+24
-7
lines changed- llvm/lib/Transforms/Vectorize
2 files changed
+24
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9348 | 9348 | | |
9349 | 9349 | | |
9350 | 9350 | | |
9351 | | - | |
9352 | | - | |
9353 | 9351 | | |
9354 | | - | |
9355 | | - | |
9356 | | - | |
9357 | | - | |
| 9352 | + | |
| 9353 | + | |
| 9354 | + | |
| 9355 | + | |
| 9356 | + | |
9358 | 9357 | | |
9359 | 9358 | | |
9360 | 9359 | | |
| |||
9389 | 9388 | | |
9390 | 9389 | | |
9391 | 9390 | | |
9392 | | - | |
| 9391 | + | |
| 9392 | + | |
| 9393 | + | |
| 9394 | + | |
9393 | 9395 | | |
9394 | 9396 | | |
9395 | 9397 | | |
| 9398 | + | |
| 9399 | + | |
| 9400 | + | |
9396 | 9401 | | |
9397 | 9402 | | |
9398 | 9403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1237 | 1249 | | |
1238 | 1250 | | |
1239 | 1251 | | |
| |||
0 commit comments