[llvm] r228979 - X86: Don't crash if we can't decode the pshufb mask

Hans Wennborg hans at chromium.org
Thu Feb 12 15:44:13 PST 2015


On Thu, Feb 12, 2015 at 3:26 PM, David Majnemer
<david.majnemer at gmail.com> wrote:
> Author: majnemer
> Date: Thu Feb 12 17:26:26 2015
> New Revision: 228979
>
> URL: http://llvm.org/viewvc/llvm-project?rev=228979&view=rev
> Log:
> 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.

Merged to 3.6 in r228983.

Thanks,
Hans



More information about the llvm-commits mailing list