From: Evan Cheng Date: Wed, 3 May 2006 02:08:34 +0000 (+0000) Subject: Set isStore of instructions with ISD::TRUNCSTORE root node. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=108714c14fbd40fef641581a5bd85441ee06c621;p=oota-llvm.git 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 --- diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index d39a51f5e90..611c0e3217f 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -201,9 +201,11 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num, DefInit *OpDef = dynamic_cast(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; + } } } }