[all-commits] [llvm/llvm-project] c803c2: [nfc][InstrProf]Remove 'offsetOf' when parsing ind...
Mingming Liu via All-commits
all-commits at lists.llvm.org
Thu May 30 12:44:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c803c29039a9716436d338b7c513c75b7bbfa8f3
https://github.com/llvm/llvm-project/commit/c803c29039a9716436d338b7c513c75b7bbfa8f3
Author: Mingming Liu <mingmingl at google.com>
Date: 2024-05-30 (Thu, 30 May 2024)
Changed paths:
M llvm/lib/ProfileData/InstrProf.cpp
Log Message:
-----------
[nfc][InstrProf]Remove 'offsetOf' when parsing indexed profiles (#93346)
- In `Header::readFromBuffer`, read the buffer in the forward direction by using `readNext`.
- When compute the header size, spell out the constant.
With the changes above, we can remove `offsetOf` in InstrProf.cpp
---------
Co-authored-by: Kazu Hirata <kazu at google.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list