summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-05-21 22:25:49 +0000
committerDale Johannesen <dalej@apple.com>2009-05-21 22:25:49 +0000
commit4ff70e389e97225729c2c6a1e52b21002cbcac87 (patch)
treef37b1fb24aa9e002a18192921b7441c0fb9d4456 /llvm/utils/TableGen/FastISelEmitter.cpp
parent84295eb6369323168316896098b6ac171bc71ca5 (diff)
downloadbcm5719-llvm-4ff70e389e97225729c2c6a1e52b21002cbcac87.tar.gz
bcm5719-llvm-4ff70e389e97225729c2c6a1e52b21002cbcac87.zip
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). llvm-svn: 72232
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FastISelEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp
index 201a2cc5fef..8c60b088627 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud