Return true if storing this vector constant directly is cheaper than storing its scalar elements.
Declared in <llvm/CodeGen/TargetLowering.h>
virtual
bool
storeOfVectorConstantIsCheap(
bool IsZero,
EVT MemVT,
unsigned int NumElem,
unsigned int AddrSpace) const;
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.
True if storing this vector constant directly is cheaper than storing its scalar elements.
| Name | Description |
|---|---|
| IsZero | Whether the constant vector is all zeros. |
| MemVT | Memory value type of the access. |
| NumElem | Number of vector elements. |
| AddrSpace | Address space of the memory access. |