OSDN Git Service

[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)
commite2e807c4e11b97224b4dee686d5610977af57fb7
tree1076ee14769cff4877862babe7e00348e5851360
parentfe83c7abdde850b1e023a13463eba69b43682954
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp