]> granicus.if.org Git - llvm/commit
[X86][FastISel] Fix lowering of overflow result on AVX512 targets
authorZvi Rackover <zvi.rackover@intel.com>
Tue, 15 Nov 2016 13:29:23 +0000 (13:29 +0000)
committerZvi Rackover <zvi.rackover@intel.com>
Tue, 15 Nov 2016 13:29:23 +0000 (13:29 +0000)
commitf042d8480ed31f58d10e8ee7497395c3349bf9e8
tree4de873d2dd74a52cd3abc7cb582e31ca579b5b22
parentcf8930d71480c6f0746afab707f89c52a2fb9f59
[X86][FastISel] Fix lowering of overflow result on AVX512 targets

    Summary:
    Fix a case where the overflow value of type i1, which is legal on AVX512, was assigned to a VK1 register class.
    We always want this value to be assigned to a GPR since the overflow return value is lowered to a SETO instruction.

    Fixes pr30981.

    Reviewers: mkuper, igorb, craig.topper, guyblank, qcolombet

    Subscribers: qcolombet, llvm-commits

    Differential Revision: https://reviews.llvm.org/D26620

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286958 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/2009-04-12-FastIselOverflowCrash.ll