SamplePGO needs to check if it is legal to promote a target before it actually promotes it.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 3417 Build 3417: arc lint + arc unit
Event Timeline
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
---|---|---|
149 | forgot to delete the dead code... |
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
---|---|---|
248 | why hoisting this into the caller? |
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
---|---|---|
248 | Because sample PGO does not take "Target" to identify TargetFunction. Instead, it directly uses Module->getFunction(Function_name) to get the "Function *". |
Why keeping this one value but eliminating all the others?