diff options
author | Dale Johannesen <dalej@apple.com> | 2009-05-21 22:25:49 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-05-21 22:25:49 +0000 |
commit | edc8774a7375dc74f226ee37d0ba321502ddf691 (patch) | |
tree | d3d4552799b7a12fbcb8184abd003804e7c215b9 /utils/TableGen | |
parent | 15002a2b528e04a5edcfccbec392f5d6b19f7f6a (diff) | |
download | external_llvm-edc8774a7375dc74f226ee37d0ba321502ddf691.zip external_llvm-edc8774a7375dc74f226ee37d0ba321502ddf691.tar.gz external_llvm-edc8774a7375dc74f226ee37d0ba321502ddf691.tar.bz2 |
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
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/FastISelEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index 201a2cc5..8c60b08 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; |