[llvm] [BOLT] Preserve Offset annotation in SCTC (PR #91693)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Fri May 10 11:10:56 PDT 2024


================
@@ -910,6 +910,9 @@ uint64_t SimplifyConditionalTailCalls::fixTailCalls(BinaryFunction &BF) {
       auto &CTCAnnotation =
           MIB->getOrCreateAnnotationAs<uint64_t>(*CondBranch, "CTCTakenCount");
       CTCAnnotation = CTCTakenFreq;
+      // Preserve Offset annotation, used for BAT
----------------
maksfb wrote:

It deserves a detailed explanation why we propagate the offset annotation from `Instr`.

https://github.com/llvm/llvm-project/pull/91693


More information about the llvm-commits mailing list