[X86][SSE] Pull out BUILD_VECTOR operand equivalence tests. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 12 Aug 2020 16:41:09 +0000 (17:41 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 12 Aug 2020 17:20:18 +0000 (18:20 +0100)
commit13d6cf0951f437d56677271475ce8c8f2111748c
tree751aecb81aef5d9708efd969b400cc693e963c86
parent5f7cdb2effa213e1bb4cbf765b8bcb5d6604d435
[X86][SSE] Pull out BUILD_VECTOR operand equivalence tests. NFC.

Pull out element equivalence code from isShuffleEquivalent/isTargetShuffleEquivalent, I've also removed many of the index modulos where possible.

First step toward simply adding some additional equivalence tests.
llvm/lib/Target/X86/X86ISelLowering.cpp