enum class VLOperands::ReorderingMode

Description

During operand reordering, we are trying to select the operand at lane that matches best with the operand at the neighboring lane. Our selection is based on the type of value we are looking for. For example, if the neighboring lane has a load, we need to look for a load that is accessing a consecutive address. These strategies are summarized in the 'ReorderingMode' enumerator.

Declared at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:748

Enumerators

NameValueComment
Load0Matching loads to consecutive memory addresses
Opcode1Matching instructions based on opcode (same or alternate)
Constant2Matching constants
Splat3Matching the same instruction multiple times (broadcast)
Failed4We failed to create a vectorizable group