[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)
commitf0b9b57bd3fc48adaf344c3116522d06e1625f07
tree340afb56a9901cff77e7b3be72eb66e662fbaa4f
parent4b4dc172e7c8bd871ff1f2a90789612a6e83585f
[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

llvm-svn: 286958
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/2009-04-12-FastIselOverflowCrash.ll