This is non-functional change to re-order if statements to bail out earlier
from unreachable and ColdCall heuristics.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Analysis/BranchProbabilityInfo.cpp | ||
---|---|---|
190–192 ↗ | (On Diff #94186) | Sholud we even get here? should this be in the caller? |
340–342 ↗ | (On Diff #94186) | This seems like it should merge into the above if? But my comment about hoisting all of this to the caller still applies. I feel like thes eshould be able to assume there are interesting successor counts. |
Comment Actions
LGTM, seems like a clear improvement in this code. See one nit about the asserts below, but feel free to submit with that addressed.
lib/Analysis/BranchProbabilityInfo.cpp | ||
---|---|---|
208 ↗ | (On Diff #94652) | Nit: add a message here and elsewhere. like "expected more than one successor!" to help confirm that the assert isn't a typo or something. |