dendibakh / perf-book

The book "Performance Analysis and Tuning on Modern CPU"

Home Page:https://book.easyperf.net/perf_book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect the code line number on page 96

ujos opened this issue · comments

Looks like on page 96 there is a typo. The text there references to dependency introduced inside the loop. The loop starts at line 5, really. But the dependency is on the line 6.

image

@ujos Thanks for all the issues you've opened. I will keep them for now and probably won't address them immediately.
Formatting is hard. Or maybe I'm just bad at LaTex. :)
Anyway, I will focus on formatting after major changes to the book are in place. Again, thanks for reporting them!

Actually this ticket is not about formatting. I believe 5 should be changed with 6 (highlighted)

Ah, OK. But actually, the loop is on line 5. I was trying to be consistent with the compiler optimization reports. They attribute all transformations inside a loop to the line with its header.

Ok, I think you're right. Fixed with c60aa4d. Thanks.