| Age | Commit message (Collapse) | Author |
|
It should not be possible to construct one without a triple. It would
also be nice to delete TargetLibraryInfoWrapperPass, but that is more
difficult.
|
|
generation (#127727)
Up until now the generation of vector instructions was taking place
during the top-down post-order traversal of vectorizeRec(). The issue
with this approach is that the vector instructions emitted during the
traversal can be reordered by the scheduler, making it challenging to
place them without breaking the def-before-uses rule.
With this patch we separate the vectorization decisions (done in
`vectorizeRec()`) from the code generation phase (`emitVectors()`). The
vectorization decisions are stored in the `Actions` vector and are used
by `emitVectors()` to drive code generation.
|
|
SelectInsts need special treatment because they are not always
straightforward to vectorize. This patch disables vectorization unless
they are trivially vectorizable.
|
|
This patch adds a legality check that checks for repeated instrs in a
bundle and won't vectorize if such pattern is found.
|
|
When the inputs of the pack come from different BBs we need to make sure
we emit the pack instructions at the correct place.
|
|
This patch implements a helper ShuffleMask data structure that helps
describe shuffles of elements across lanes.
|
|
This patch hooks up InstrMaps to the Sandbox IR callbacks such that it
gets updated when instructions get erased.
|
|
InstrMaps is a helper data structure that maps scalars to vectors and
the reverse. This is used by the vectorizer to figure out which vectors
it can extract scalar values from.
|
|
This patch registers the "createInstr" callback that notifies the
scheduler about newly created instructions. This guarantees that all
newly created instructions have a corresponding DAG node associated with
them. Without this the pass crashes when the scheduler encounters the
newly created vector instructions.
This patch also changes the lifetime of the sandboxir Ctx variable in
the SandboxVectorizer pass. It needs to be destroyed after the passes
get destroyed. Without this change when components like the Scheduler
get destroyed Ctx will have already been freed, which is not legal.
|
|
This patch adds the legality check of whether the candidate instructions
can be scheduled together. This uses a Scheduler object.
|
|
This patch adds more opcode-specific legality checks.
|
|
|
|
|
|
|
|
This reverts commit eb9f4756bc3daaa4b19f4f46521dc05180814de4.
|
|
This reverts commit 6c9bbbc818ae8a0d2849dbc1ebd84a220cc27d20.
|
|
|
|
This patch adds a LegalityResultWithReason class for describing the
reason why legality decided not to vectorize the code.
|
|
|
|
|
|
This patch adds the basic API for the Legality component of the
vectorizer. It also adds some very basic code in the bottom-up
vectorizer that uses the API.
|