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 | 098d3a41e11e12f6fe64cf9778d71942a9635e05 (patch) | |
tree | 8057358c37a11dbc50a57250f20132311b17c1df /utils/TableGen | |
parent | aa66d2f48ad0c2d2b3f8929dea432bb17a5442a5 (diff) | |
download | external_llvm-098d3a41e11e12f6fe64cf9778d71942a9635e05.zip external_llvm-098d3a41e11e12f6fe64cf9778d71942a9635e05.tar.gz external_llvm-098d3a41e11e12f6fe64cf9778d71942a9635e05.tar.bz2 |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/FastISelEmitter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp index 9ec9e08..7c54f78 100644 --- a/utils/TableGen/FastISelEmitter.cpp +++ b/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; |