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 3419 Build 3419: arc lint + arc unit
Event Timeline
| lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
|---|---|---|
| 146–147 | forgot to delete the dead code... | |
| lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
|---|---|---|
| 233 | why hoisting this into the caller? | |
| lib/Transforms/Instrumentation/IndirectCallPromotion.cpp | ||
|---|---|---|
| 233 | 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?