In order to facilitate review of D79485 here is a small NFC change which restructures code around handling of SCCs in BPI.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Analysis/BranchProbabilityInfo.h | ||
---|---|---|
194 | Old code accounted for header blocks only by keeping a map between basic block to a boolean value. New code associates basic blocks with one or several values from SccBlockType. That's why 'bool' was replaced with 'uint32_t'. In other words we are able to classify basic blocks as either Inner or Header and/or Exiting. That's why keeping "Header" in the type name has now sense now. | |
197 | "Header" has no sense now. It should be changed to something. Please suggest alternatives. |
Prefer the original name here. Also why changing bool to uint32_t?