[CostModel] Fix long standing bug with reverse shuffle mask detection
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Dec 2016 12:12:45 +0000 (12:12 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 15 Dec 2016 12:12:45 +0000 (12:12 +0000)
commit9876ed07f633af7702d4f06de8666a0a48c20fb6
treed06576fc7ba7d99f65c7ca6996dc00e15d5eb269
parentec02b8d4c03e4c5cb9274fe35a1de1b80067ff2e
[CostModel] Fix long standing bug with reverse shuffle mask detection

Incorrect 'undef' mask index matching meant that broadcast shuffles could be detected as reverse shuffles

llvm-svn: 289811
llvm/lib/Analysis/CostModel.cpp
llvm/test/Analysis/CostModel/X86/shuffle-broadcast.ll [new file with mode: 0644]