OSDN Git Service

[x86] limit extractelement of setcc to pre-legalization
authorSanjay Patel <spatel@rotateright.com>
Wed, 13 Mar 2019 14:49:52 +0000 (14:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 13 Mar 2019 14:49:52 +0000 (14:49 +0000)
commitb1c30dbc6329056d2c6b9693f6902d9c445bb77a
tree2643ec078a5325107155caaf56ec9d5fd16d0334
parenta63c4ac08c2e5b52ed9f4fdf43c3be709496fb19
[x86] limit extractelement of setcc to pre-legalization

A fuzzer found the crasher:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13700

The bug was introduced recently here:
rL355741

This is the quick fix. If we need to do this transform
later, then we'd have to extend/truncate the vector setcc
element type to the scalar setcc type (i8).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/extractelement-fp.ll