OSDN Git Service

[X86][SSE] Fixed typo in insertps lowering.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 6 Jul 2016 18:09:08 +0000 (18:09 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 6 Jul 2016 18:09:08 +0000 (18:09 +0000)
commit02fbf492dd0b1491bda988a4bffde198697da30c
tree1e67471760b2ccb366361099dacea64e5bc9f499
parent8bf0aed731c5f9e3042186a8023a33649a073dac
[X86][SSE] Fixed typo in insertps lowering.

We were checking for 2 insertions (which is caught earlier in the pattern matching loop) instead of the case where we have no insertions.

Turns out this code never fires as we always try to lower to insertps after trying to lower to blendps, which would catch these cases - I'm about to make some changes to support combining to insertps which could cause this to fire so I don't want to remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp