llvm::setWidenableBranchCond

Sets a widenable branch's condition to Cond while keeping it widenable.

Synopsis

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

void
setWidenableBranchCond(
    CondBrInst* WidenableBR,
    Value* Cond);

Description

Given a branch we know is widenable (defined per Analysis/GuardUtils.h), set its condition such that (only) Cond is known to hold on the taken path and that the branch remains widenable after the transform.

Parameters

NameDescription
WidenableBRWidenable conditional branch whose condition is set.
CondCondition that must hold on the taken path.