llvm::widenWidenableBranch

Widens a widenable branch so that NewCond also holds on the taken path.

Synopsis

Declared in <llvm/Transforms/Utils/GuardUtils.h>

void
widenWidenableBranch(
    CondBrInst* WidenableBR,
    Value* NewCond);

Description

Given a branch we know is widenable (defined per Analysis/GuardUtils.h), widen it such that condition NewCond is also known to hold on the taken path. The branch remains widenable after the transform.

Parameters

NameDescription
WidenableBRWidenable conditional branch to widen.
NewCondAdditional condition that must hold on the taken path.