llvm::peekThroughInsertVectorElt

Recursively peek through INSERT_VECTOR_ELT nodes.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

SDValue
peekThroughInsertVectorElt(
    SDValue V,
    APInt const& DemandedElts);

Description

Returning the source vector operand of V, as long as V is an INSERT_VECTOR_ELT operation that do not insert into any of the demanded vector elts.

Return Value

The source vector after peeling irrelevant INSERT_VECTOR_ELT nodes.

Parameters

NameDescription
VValue to peek through.
DemandedEltsElements that must remain undisturbed.