[X86] Make the subus special case in LowerVSETCC self contained
authorCraig Topper <craig.topper@intel.com>
Thu, 22 Feb 2018 20:24:18 +0000 (20:24 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 22 Feb 2018 20:24:18 +0000 (20:24 +0000)
commit1aed540ea2ba68fc252939727b06a8ecd5266d67
tree9224648c11a766777470bb72ccfc474c45657939
parent9161a6cb252d86a486feb6cfb5b1619caef8c4b5
[X86] Make the subus special case in LowerVSETCC self contained

Previously this code overrode the flags and opcode used by the later code in LowerVSETCC. This makes the code difficult to read and follow.

This patch moves all the SUBUS code into its own function and makes it responsible for creating its own SDNodes on success.

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

llvm-svn: 325827
llvm/lib/Target/X86/X86ISelLowering.cpp