[llvm] [BOLT] Fix the inaccurate profile data check (PR #136278)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 20 19:29:19 PDT 2025


================
@@ -524,6 +524,9 @@ float DataReader::evaluateProfileData(BinaryFunction &BF,
       // when we identify tail calls, so they are still represented
       // by regular branch instructions and we need isBranch() here.
       MCInst *Instr = BF.getInstructionAtOffset(BI.From.Offset);
+      // If it's a RISCV PseudoCALL - fix it
+      if (!Instr && BC.isRISCV())
----------------
aaupov wrote:

Use `isRISCVCall(const MCInst &First, const MCInst &Second)`

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


More information about the llvm-commits mailing list