llvm::PostDominatorTree::dominates

Return true if I1 dominates I2.

Synopsis

Declared in <llvm/Analysis/PostDominators.h>

bool
dominates(
    Instruction const* I1,
    Instruction const* I2) const;

Description

This checks if I2 comes before I1 if they belong to the same basic block.

Return Value

True if I1 dominates I2.

Parameters

NameDescription
I1Instruction that may dominate I2.
I2Instruction to test for dominance.