Take
LoopEndNode frequencies to calculate the frequency of a loop instead of
LoopExitNode frequency. For this a sum of the
LoopEndNode frequencies is
taken. This sum is subtracted from 1 to get the frequency of all paths out of the loop.
Note that this ignores the frequency of all paths out of the loop that do not go through
a loop exit, i.e. control flow sinks like deopt nodes that do not require explicit loop
exit nodes. The formula that must hold here is sumLoopEndFrequency + sumSinkFrequency +
sumLoopExitFrequency = 1.
This option only exists to debug loop frequency calculation differences when taking exits
or ends. A vastly different loop frequency calculated with the
LoopEndNode sum
indicates there are many non 0 frequency paths out of a loop.