Skip to content
Commit ab599fe7 authored by Theodoros Kasampalis's avatar Theodoros Kasampalis Committed by Maksim Panchenko
Browse files

Basic block clustering algorithm for minimizing branches.

Summary:
This algorithm is similar to our main clustering algorithm but uses
a different heuristic for selecting edges to become fall-throughs.
The weight of an edge is calculated as the win in branches if we choose
to layout this edge as a fall-through. For example, the edges A -> B with
execution count 100 and A -> C with execution count 500 (where B and C
are the only successors of A) have weights -400 and +400 respectively.

(cherry picked from FBD3606591)
parent a9bb3320
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment