commit | b37a8206b6ba10c2bd59e19811dfd88091021556 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Mar 04 19:23:38 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Mar 04 19:23:38 2009 +0000 |
tree | e2659d5ff5d55a6cf88649b0589f15a5772012e2 | |
parent | 88fe1ad187041e2ca636e0f86204e30fc6e14300 [diff] |
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