https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/90811
Map branches that are not present in BAT to the containing basic block. The normal behavior is to map it to the preceding translation entry, which may or may not be a basic block, and this causes profile staleness issues. This diff fulfills the intent of the comment added in 21f4303bfd01d: ``` // Branch source addresses are translated to the first instruction of the // source BB to avoid accounting for modifications BOLT may have made in the // BB regarding deletion/addition of instructions. ``` Test Plan: Updated bolt-address-translation-yaml.test _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits