From: Dale Johannesen Date: Thu, 21 May 2009 22:25:49 +0000 (+0000) Subject: TableGen for fast isel seems to assume an 'imm' X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=edc8774a7375dc74f226ee37d0ba321502ddf691;p=oota-llvm.git TableGen for fast isel seems to assume an 'imm' operand is the last in a pattern. There is no reason this should be true (although apparently it always is right now). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72232 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index 201a2cc5fef..8c60b088627 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/utils/TableGen/FastISelEmitter.cpp @@ -82,11 +82,11 @@ struct OperandsSignature { if (!Op->isLeaf()) { if (Op->getOperator()->getName() == "imm") { Operands.push_back("i"); - return true; + continue; } if (Op->getOperator()->getName() == "fpimm") { Operands.push_back("f"); - return true; + continue; } // For now, ignore other non-leaf nodes. return false;