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
- Build Status
Buildable 7759 Build 7759: arc lint + arc unit
Event Timeline
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
306 | 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?