-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Analysis] Migrate to a new version of getValueProfDataFromInst (#97234)
This patch migrates a use of getValueProfDataFromInst in the indirect call promotion to a new version. Without this patch, getProfitablePromotionCandidates is a little strange in that it takes value profiling data from member variable ValueDataArray while taking its length as a function parameter. This patch rectifies that by teaching the function to refer to ValueDataArray, which is now a SmallVector.
- Loading branch information
1 parent
1dc5000
commit 6d2b427
Showing
2 changed files
with
12 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters