]> granicus.if.org Git - llvm/commit
[GlobalISel][AArch64] Gardening: Factor out code to find lane indices
authorJessica Paquette <jpaquette@apple.com>
Wed, 13 Mar 2019 21:19:29 +0000 (21:19 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 13 Mar 2019 21:19:29 +0000 (21:19 +0000)
commitd6686b6984bdc4f8111947a4471172036a5aea97
tree9247b00d98dda26b9f6c9e967ae6508f29bbfee7
parenta4638a6a3ae392cbd5100615bc069d88180ab018
[GlobalISel][AArch64] Gardening: Factor out code to find lane indices

Some more refactoring for G_INSERT_VECTOR_ELT.

Factor out the code used to find a lane index from `selectExtractElt`. Put it
into a more general-purpose `getConstantValueForReg` function.

This will be shared with the code for G_INSERT_VECTOR_ELT.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstructionSelector.cpp