Skip to content

Commit

Permalink
Incorrect code line number
Browse files Browse the repository at this point in the history
This fixes #8
  • Loading branch information
dendibakh committed Dec 17, 2021
1 parent 1d1a25b commit c60aa4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ a.c:5:3: remark: unrolled loop by a factor of 4 with run-time trip count [-Rpass
^
```
By checking the optimization report above, we could see that the loop was not vectorized, but it was unrolled instead. It's not always easy for a developer to recognize the existence of vector dependency in the loop on line 5 in [@lst:optReport]. The value that is loaded by `c[i-1]` depends on the store from the previous iteration (see operations #2 and #3 in Figure @fig:VectorDep). The dependency can be revealed by manually unrolling a few first iterations of the loop:
By checking the optimization report above, we could see that the loop was not vectorized, but it was unrolled instead. It's not always easy for a developer to recognize the existence of vector dependency in the loop on line 6 in [@lst:optReport]. The value that is loaded by `c[i-1]` depends on the store from the previous iteration (see operations #2 and #3 in Figure @fig:VectorDep). The dependency can be revealed by manually unrolling a few first iterations of the loop:
```cpp
// iteration 1
Expand Down

0 comments on commit c60aa4d

Please sign in to comment.