mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Set isStore of instructions with ISD::TRUNCSTORE root node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a69571c799
commit
108714c14f
@ -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
Block a user