Skip to content

Commit 2de14fb

Browse files
committed
fix is invoke check
1 parent 0bbd659 commit 2de14fb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

bolt/lib/Passes/ProfileQualityStats.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,12 @@ void printExceptionHandlingStats(const BinaryContext &BC, raw_ostream &OS,
411411
if (BB.isLandingPad())
412412
LPECSum += BBEC;
413413
for (const MCInst &Inst : BB) {
414-
if (!BC.MIB->isCall(Inst))
414+
if (!BC.MIB->isInvoke(Inst))
415415
continue;
416-
if (BC.MIB->isInvoke(Inst)) {
417-
const std::optional<MCPlus::MCLandingPad> EHInfo =
418-
BC.MIB->getEHInfo(Inst);
419-
if (EHInfo->first)
420-
InvokeECSum += BBEC;
421-
}
416+
const std::optional<MCPlus::MCLandingPad> EHInfo =
417+
BC.MIB->getEHInfo(Inst);
418+
if (EHInfo->first)
419+
InvokeECSum += BBEC;
422420
}
423421
}
424422

0 commit comments

Comments
 (0)