[aarch64] move custom isel of extract_vector_elt to td file - NFC
authorSebastian Pop <sebpop@gmail.com>
Fri, 13 Sep 2019 19:28:30 +0000 (19:28 +0000)
committerSebastian Pop <sebpop@gmail.com>
Fri, 13 Sep 2019 19:28:30 +0000 (19:28 +0000)
commitd93e136be14c49e612bbf7e4e0a388409a93295c
treed0e7c8a35287c1f8c24a42b8236c08118db28821
parente210c0383bef30dd3d3be18ac4148299303421bd
[aarch64] move custom isel of extract_vector_elt to td file - NFC

In preparation for def-pat selection of dot product instructions,
this patch moves the custom instruction selection of extract_vector_elt
to the td file. Without this change it is impossible to catch a pattern that
starts with an extract_vector_elt: the custom cpp code is executed first
ahead of the patterns in the td files that are only executed at the end of
the switch statement in SelectCode(Node).

With this patch applied, it becomes possible to select a different pattern
that starts with extract_vector_elt by selecting a higher complexity than
this pattern.

The patch has been tested on aarch64-linux with make check-all.

Differential Revision: https://reviews.llvm.org/D67497

llvm-svn: 371887
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.td