In line 68, func getBlockFreqRelativeToEntryBlock assume getEntryFreq() is
non-zero, but the function could return 0, add assert to confirm it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D148606
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
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 17 2023, 11:27 PM Closed by commit rGe4dd1d033063: Add assert to avoid unexpected situation (authored by XinWang10). · Explain WhyApr 18 2023, 12:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 514529 llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
|