mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 07:36:06 +00:00
Minor code simplification.
llvm-svn: 104845
This commit is contained in:
parent
8e99e50d08
commit
388fa73f03
@ -54,16 +54,16 @@ struct OperandsSignature {
|
||||
bool initialize(TreePatternNode *InstPatNode,
|
||||
const CodeGenTarget &Target,
|
||||
MVT::SimpleValueType VT) {
|
||||
if (!InstPatNode->isLeaf() &&
|
||||
InstPatNode->getOperator()->getName() == "imm") {
|
||||
if (!InstPatNode->isLeaf()) {
|
||||
if (InstPatNode->getOperator()->getName() == "imm") {
|
||||
Operands.push_back("i");
|
||||
return true;
|
||||
}
|
||||
if (!InstPatNode->isLeaf() &&
|
||||
InstPatNode->getOperator()->getName() == "fpimm") {
|
||||
if (InstPatNode->getOperator()->getName() == "fpimm") {
|
||||
Operands.push_back("f");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
const CodeGenRegisterClass *DstRC = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user