When using MachineInstr operand indices on SDNodes, the number
authorDan Gohman <gohman@apple.com>
Wed, 4 Mar 2009 19:23:38 +0000 (19:23 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 4 Mar 2009 19:23:38 +0000 (19:23 +0000)
commitb37a8206b6ba10c2bd59e19811dfd88091021556
treee2659d5ff5d55a6cf88649b0589f15a5772012e2
parent88fe1ad187041e2ca636e0f86204e30fc6e14300
When using MachineInstr operand indices on SDNodes, the number
of MachineInstr def operands must be subtracted out. This bug
was uncovered by the recent x86 EFLAGS optimization. Before
that, the only instructions that ever needed unfolding were
things like CMP32rm, where NumDefs is zero.

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