use of org.jikesrvm.compilers.opt.dfsolver.DF_LatticeCell in project JikesRVM by JikesRVM.
the class Dominators method updateBlocks.
/**
* Creates a {@code DominatorInfo} for each basic block
* in the data flow system solution.
*
* @param solution the solution to the Dominators equations
*/
public void updateBlocks(DF_Solution solution) {
int capacityToPreventRehash = (int) (solution.size() * 1.4f);
dominatorInfo = new HashMap<BasicBlock, DominatorInfo>(capacityToPreventRehash);
for (final DF_LatticeCell latticeCell : solution.values()) {
DominatorCell cell = (DominatorCell) latticeCell;
BasicBlock b = cell.block;
dominatorInfo.put(b, new DominatorInfo(cell.dominators));
if (DEBUG) {
System.out.println("Dominators of " + b + ":" + cell.dominators);
}
}
}
Aggregations