diff options
| author | Owen Anderson <resistor@mac.com> | 2011-07-29 17:32:03 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2011-07-29 17:32:03 +0000 |
| commit | abe75904a82b352e8a7e1e9d335e235269d14180 (patch) | |
| tree | 89f05a1339a22f391f6f1ccfaeab547bb287452a | |
| parent | 72a9716073b98f56911ef0c7be5632c1eec9481d (diff) | |
| download | bcm5719-llvm-abe75904a82b352e8a7e1e9d335e235269d14180.tar.gz bcm5719-llvm-abe75904a82b352e8a7e1e9d335e235269d14180.zip | |
Fix a case where, when trying to track tied operands, we'd accidentally overwrite our mapping.
llvm-svn: 136467
| -rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp index 4a2483b7456..206d15f0628 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -1228,10 +1228,8 @@ static bool populateInstruction(const CodeGenInstruction &CGI, std::map<Init*, std::string> TiedNames; for (unsigned i = 0; i < CGI.Operands.size(); ++i) { int tiedTo = CGI.Operands[i].getTiedRegister(); - if (tiedTo != -1) { + if (tiedTo != -1) TiedNames[InOutOperands[i].first] = InOutOperands[tiedTo].second; - TiedNames[InOutOperands[tiedTo].first] = InOutOperands[i].second; - } } // For each operand, see if we can figure out where it is encoded. @@ -1267,6 +1265,8 @@ static bool populateInstruction(const CodeGenInstruction &CGI, unsigned Offset = 0; for (unsigned bi = 0; bi < Bits.getNumBits(); ++bi) { + std::string name = NI->second; + std::string altname = TiedNames[NI->first]; VarBitInit *BI = dynamic_cast<VarBitInit*>(Bits.getBit(bi)); if (!BI) { if (Base != ~0U) { |

