]> granicus.if.org Git - llvm/commit
Merging r228979:
authorHans Wennborg <hans@hanshq.net>
Thu, 12 Feb 2015 23:42:03 +0000 (23:42 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 12 Feb 2015 23:42:03 +0000 (23:42 +0000)
commita6c8e652209ad69b25ac24f68e0c13912da3d226
treed0cdeb5fec001f97ac8c0139209e91d09a7a40a9
parente13563e5ba51fb89cc41e88acecf7ad96543be05
Merging r228979:
------------------------------------------------------------------------
r228979 | majnemer | 2015-02-12 15:26:26 -0800 (Thu, 12 Feb 2015) | 8 lines

X86: Don't crash if we can't decode the pshufb mask

Constant pool entries are uniqued by their contents regardless of their
type.  This means that a pshufb can have a shuffle mask which isn't a
simple array of bytes.

The code path which attempts to decode the mask didn't check for
failure, causing PR22559.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@228983 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/pshufb-mask-comments.ll