llvm::IDFCalculatorBase::calculate

Calculate iterated dominance frontiers.

Synopsis

Declared in <llvm/Support/GenericIteratedDominanceFrontier.h>

void
calculate(SmallVectorImpl<NodeTy*>& IDFBlocks);

Description

This uses the linear-time phi algorithm based on DJ-graphs mentioned in the file-level comment. It performs DF->IDF pruning using the live-in set, to avoid computing the IDF for blocks where an inserted PHI node would be dead.

Parameters

NameDescription
IDFBlocksOutput vector filled with IDF blocks.