X86: Fix the (saddo/ssub x, 1) -> incl/decl selection to check the right operand...
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 8 Mar 2011 15:20:20 +0000 (15:20 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 8 Mar 2011 15:20:20 +0000 (15:20 +0000)
commitc175a4bd7eaf595cc298bbe3ab4b36fe0333e409
treee3c763164492f5e27cc62db84a7602759f007522
parentc6f24f4086c786e8ee8e74193ea9a08e90853e0b
X86: Fix the (saddo/ssub x, 1) -> incl/decl selection to check the right operand for 1.

Found by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127247 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/add.ll
test/CodeGen/X86/sub-with-overflow.ll