When identifying blocks post-dominated by an unreachable-terminated block
in BranchProbabilityInfo, consider only the edge to the normal destination
block if the terminator is InvokeInst and let calcInvokeHeuristics() decide
edge weights for the InvokeInst.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is a nice improvement -- this change looks good to me.
lib/Analysis/BranchProbabilityInfo.cpp | ||
---|---|---|
126 | Actually I meant line 142 -- but it is probably not cleaner. | |
157 | discard this comment -- though it does not matter what successor BPs are when the BB's weight is zero, it is still better to use the heurisitic later. |
Is it better to move the new logic here in the same place?