(For X86) Enhancement to add-carray/sub-borrow (adc/sbb) optimization.
authorShuxin Yang <shuxin.llvm@gmail.com>
Wed, 31 Oct 2012 23:11:48 +0000 (23:11 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Wed, 31 Oct 2012 23:11:48 +0000 (23:11 +0000)
commita5526a9bffbd62a14d576f583c206a8a781cc2f1
treee58a6a7c0baec3b6f947d8df16933e36fdc374ac
parente57b2cbce652d45ed5516e52ad82991bfa03cfd7
(For X86) Enhancement to add-carray/sub-borrow (adc/sbb) optimization.

  The adc/sbb optimization is to able to convert following expression
into a single adc/sbb instruction:
  (ult) ... = x + 1 // where the ult is unsigned-less-than comparison
  (ult) ... = x - 1

  This change is to flip the "x >u y" (i.e. ugt comparison) in order
to expose the adc/sbb opportunity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/add-of-carry.ll
test/CodeGen/X86/jump_sign.ll