Fixed bug when custom lowering DEC64m on x86.
authorPete Cooper <peter_cooper@apple.com>
Mon, 13 Feb 2012 00:10:03 +0000 (00:10 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 13 Feb 2012 00:10:03 +0000 (00:10 +0000)
commitce3900849a3b5d43d27ad0fa4d94ff6c12afc9f0
tree24d28f8b3426004f5b9908d614e296b6d474c61e
parent2ee746b87d9471d2dc024827cacdc46114ed3708
Fixed bug when custom lowering DEC64m on x86.

If the DEC node had more than one user, it was doing this lowering but
leaving the original DEC node around and so decrementing twice.

Fixes PR11964.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150356 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/dec-eflags-lower.ll