Details
- Reviewers
 rafauler maksfb - Group Reviewers
 Restricted Project - Commits
 - rG6a1cf545cc0b: [BOLT][YAML] Only read first profile per function
 
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | Unneeded.  | |
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | It is needed because the attaching happens in lines 341-354. Preliminary exec count assignment is a suitable place where it's easy/cheap to check if the profile was attached already.  | |
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | Then you need auto &BF.  | |
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | As discussed offline, this structured binding expands into reference types so modifying BF here has an effect.  | |
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | Relevant note from Programmer's Manual: 
 https://llvm.org/docs/ProgrammersManual.html#the-zip-functions  | |
| bolt/lib/Profile/YAMLProfileReader.cpp | ||
|---|---|---|
| 307 | Cool.  | |
Unneeded.