-
- Downloads
PGO: Use the main file name to help distinguish functions with local linkage.
In addition, for all functions, use the name from the llvm::Function to identify the function in the profile data. Compute that "function name", including the file name for local functions, once when assigning the PGO counters and store it in the CodeGenPGO class. Move the code to add InlineHint and Cold attributes out of StartFunction(), because the "function name" string isn't available at that point. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203075 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CodeGenFunction.cpp 2 additions, 11 deletionslib/CodeGen/CodeGenFunction.cpp
- lib/CodeGen/CodeGenPGO.cpp 39 additions, 6 deletionslib/CodeGen/CodeGenPGO.cpp
- lib/CodeGen/CodeGenPGO.h 15 additions, 6 deletionslib/CodeGen/CodeGenPGO.h
- test/CodeGen/Inputs/instr-profile.pgodata 4 additions, 0 deletionstest/CodeGen/Inputs/instr-profile.pgodata
- test/CodeGen/instr-profile.c 13 additions, 0 deletionstest/CodeGen/instr-profile.c
Loading
Please register or sign in to comment