Fix a bug handling nodes with variable arguments. The code was fixed to assume
authorChris Lattner <sabre@nondot.org>
Tue, 14 Nov 2006 18:41:38 +0000 (18:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Nov 2006 18:41:38 +0000 (18:41 +0000)
commit7c3a96b81a66eadffe54366b1b0952f11f7876f6
tree8bdb9c9feb0645308f39c80900be2ca1d6b79516
parent20ddd4a7ae3798fa65a2bc6e7258e3d4500ecbe9
Fix a bug handling nodes with variable arguments.  The code was fixed to assume
that there were two input operands before the variable operand portion.  This
*happened* to be true for all call instructions, which took a chain and a
destination, but was not true for the PPC BCTRL instruction, whose destination
is implicit.

Making this code more general allows elimination of the custom selection logic
for BCTRL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31732 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/DAGISelEmitter.cpp