diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-27 16:25:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-27 16:25:05 +0000 |
commit | 388fa73f034af5470ffc22db5f16e65c56afd5b9 (patch) | |
tree | addb3db5cdae2be28284ff218cc478a256e2a765 | |
parent | 8e99e50d08b646b0b742cda5612e8999abce6416 (diff) | |
download | bcm5719-llvm-388fa73f034af5470ffc22db5f16e65c56afd5b9.tar.gz bcm5719-llvm-388fa73f034af5470ffc22db5f16e65c56afd5b9.zip |
Minor code simplification.
llvm-svn: 104845
-rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index 9ec9e088424..7c54f7877d5 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/utils/TableGen/FastISelEmitter.cpp @@ -54,15 +54,15 @@ struct OperandsSignature { bool initialize(TreePatternNode *InstPatNode, const CodeGenTarget &Target, MVT::SimpleValueType VT) { - if (!InstPatNode->isLeaf() && - InstPatNode->getOperator()->getName() == "imm") { - Operands.push_back("i"); - return true; - } - if (!InstPatNode->isLeaf() && - InstPatNode->getOperator()->getName() == "fpimm") { - Operands.push_back("f"); - return true; + if (!InstPatNode->isLeaf()) { + if (InstPatNode->getOperator()->getName() == "imm") { + Operands.push_back("i"); + return true; + } + if (InstPatNode->getOperator()->getName() == "fpimm") { + Operands.push_back("f"); + return true; + } } const CodeGenRegisterClass *DstRC = 0; |