When profile data is given, .hot/.unlikely section prefix is
added to hot/cold functions for linker to improve code locality. GCC
controls this behavior with '-f(no)-reorder-functions' flag, while LLVM
uses opt tool option '-profile-guided-section-prefix=true/false'. This
patch is for LLVM to support the same driver flag with GCC. Clang side
patch with test cases will follow.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 23920 Build 23919: arc lint + arc unit
Event Timeline
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
411 | Can TM be null? |
Comment Actions
@davidxl I think it is theoretically possible, if the if branch is not taken on line 294. Did I miss something? Thanks!
Can TM be null?