This is an archive of the discontinued LLVM Phabricator instance.

Add assert to avoid unexpected situation
ClosedPublic

Authored by XinWang10 on Apr 17 2023, 11:23 PM.

Details

Summary

In line 68, func getBlockFreqRelativeToEntryBlock assume getEntryFreq() is
non-zero, but the function could return 0, add assert to confirm it.

Diff Detail

Event Timeline

XinWang10 created this revision.Apr 17 2023, 11:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 11:23 PM
XinWang10 requested review of this revision.Apr 17 2023, 11:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 11:23 PM
This revision is now accepted and ready to land.Apr 17 2023, 11:27 PM
This revision was automatically updated to reflect the committed changes.