[SLPVectorizer] Remove nullptr early-outs from Instruction::ShuffleVector getEntryCost
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 2 Jul 2018 13:41:29 +0000 (13:41 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 2 Jul 2018 13:41:29 +0000 (13:41 +0000)
commitd5fb50e3bf483ede6ca1cbce5cc4a9d9d81d2671
tree542c430e3a1efb0aff8bf89ebae147c17032ef98
parent951f617e163e90eb89419e34e642b16c52ad6cc8
[SLPVectorizer] Remove nullptr early-outs from Instruction::ShuffleVector getEntryCost

This code is only used by alternate opcodes so the InstructionsState has already confirmed that every Value is an Instruction, plus we use cast<Instruction> which will assert on failure.

llvm-svn: 336102
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp