[X86][SSE] Don't get target shuffle operands prematurely.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Feb 2016 09:07:47 +0000 (09:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Feb 2016 09:07:47 +0000 (09:07 +0000)
commitc291c0370268f986cb5fe2e845ef9af620dbdb83
treee65e11952a4623ae536f5aa7938a94f344b5770e
parentcb2aeb66e40fd454005601f5999a84310f4f6024
[X86][SSE] Don't get target shuffle operands prematurely.

PerformShuffleCombine should be usable by unary and binary target shuffles, but was attempting to get the first two operands whatever the instruction type. Since these are only used for VECTOR_SHUFFLE instructions for one particular combine I've moved them inside the relevant if statement.

llvm-svn: 261727
llvm/lib/Target/X86/X86ISelLowering.cpp