Minor code simplification.

llvm-svn: 104845
This commit is contained in:
Dan Gohman 2010-05-27 16:25:05 +00:00
parent 8e99e50d08
commit 388fa73f03

View File

@ -54,15 +54,15 @@ struct OperandsSignature {
bool initialize(TreePatternNode *InstPatNode, bool initialize(TreePatternNode *InstPatNode,
const CodeGenTarget &Target, const CodeGenTarget &Target,
MVT::SimpleValueType VT) { MVT::SimpleValueType VT) {
if (!InstPatNode->isLeaf() && if (!InstPatNode->isLeaf()) {
InstPatNode->getOperator()->getName() == "imm") { if (InstPatNode->getOperator()->getName() == "imm") {
Operands.push_back("i"); Operands.push_back("i");
return true; return true;
} }
if (!InstPatNode->isLeaf() && if (InstPatNode->getOperator()->getName() == "fpimm") {
InstPatNode->getOperator()->getName() == "fpimm") { Operands.push_back("f");
Operands.push_back("f"); return true;
return true; }
} }
const CodeGenRegisterClass *DstRC = 0; const CodeGenRegisterClass *DstRC = 0;