Improvements to the computation of Vasm block and arc weights
Summary:
This diff implements a couple of improvements in Vasm to how its block and arc
weights are computed, which affect code layout.
1) For the block weights, it adds a pass to make sure that a blocks weight doesn't exceed neither the weight of all its predecessors nor the weight of its successors.
2) For the arcs weights, it improves the computation of the weights of critical arcs. Instead of always approximating the weight of this arcs, we now try to infer them as much as possible.
Reviewed By: swtaarrs
Differential Revision:
D5291316
fbshipit-source-id:
30d6295344aa43529de59c7879616601cdd81eff