Files
clang-p2996/llvm/lib/Analysis/IndirectCallPromotionAnalysis.cpp
Kazu Hirata 6d2b4272ed [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.
2024-07-01 14:54:59 -07:00

4.0 KiB