llvm::TargetLoweringBase::storeOfVectorConstantIsCheap

Return true if storing this vector constant directly is cheaper than storing its scalar elements.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
bool
storeOfVectorConstantIsCheap(
    bool IsZero,
    EVT MemVT,
    unsigned int NumElem,
    unsigned int AddrSpace) const;

Description

Return true if it is expected to be cheaper to do a store of vector constant with the given size and type for the address space than to store the individual scalar element constants.

Return Value

True if storing this vector constant directly is cheaper than storing its scalar elements.

Parameters

NameDescription
IsZeroWhether the constant vector is all zeros.
MemVTMemory value type of the access.
NumElemNumber of vector elements.
AddrSpaceAddress space of the memory access.