This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Split missed macro-fusion counting around removeConditionalTailCalls
Needs ReviewPublic

Authored by Amir on Jul 31 2023, 7:50 AM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Summary

D156389 fixes conditional tail calls instrumentation by moving Offset annotation
from the conditional jump left in place of CTC to the newly constructed tail
call. However, this breaks missed macro-op fusion opportunities counting which
relies on offset information for conditional jumps.

Work around that by collecting the blocks with missed macro-fusion before
removeConditionalTailCalls but computing the count after it.

Depends On:
D156389

Diff Detail