forked from OSchip/llvm-project
Set isStore of instructions with ISD::TRUNCSTORE root node.
llvm-svn: 28075
This commit is contained in:
parent
20a631fde7
commit
386fb9b0fd
|
@ -201,9 +201,11 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
|
|||
DefInit *OpDef = dynamic_cast<DefInit*>(Dag->getOperator());
|
||||
if (OpDef) {
|
||||
Record *Operator = OpDef->getDef();
|
||||
if (Operator->isSubClassOf("SDNode") &&
|
||||
Operator->getValueAsString("Opcode") == "ISD::STORE")
|
||||
isStore = true;
|
||||
if (Operator->isSubClassOf("SDNode")) {
|
||||
const std::string Opcode = Operator->getValueAsString("Opcode");
|
||||
if (Opcode == "ISD::STORE" || Opcode == "ISD::TRUNCSTORE")
|
||||
isStore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue