llvm::isOverflowIntrinsicNoWrap

Returns true if the arithmetic part of the WO 's result is used only along no-overflow paths.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

bool
isOverflowIntrinsicNoWrap(
    WithOverflowInst const* WO,
    DominatorTree const& DT);

Description

That is, the arithmetic result is used only along the paths control dependent on the computation not overflowing, WO being an <op>.with.overflow intrinsic.

Return Value

True if the arithmetic result is only used on no-overflow paths.

Parameters

NameDescription
WOWith-overflow intrinsic to analyze.
DTDominator tree used to reason about control dependence.