When CGP lowers select back to control flow, the weight meta data gets dropped. This patch fixes the problem.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The builder interface should copy all branch related meta data if-available. The new interface will also replace similar code in loop unswitch (followup).
Dehao, the new change also copies over debug location meta data to the branch. What is the potential impact of this to Sample PGO?
Comment Actions
This shouldn't affect sample pgo because we don't use branch instruction for annotation.