diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-10 13:18:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-10 13:18:44 +0000 |
commit | bf152d57a4c909bf408407924166e981dce84ee3 (patch) | |
tree | 783e6e25459c128bfbd5881ca3f1aa1386e16a3a /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 63168c75333b0c8dc74e337d71fe3411b2781577 (diff) | |
download | bcm5719-llvm-bf152d57a4c909bf408407924166e981dce84ee3.tar.gz bcm5719-llvm-bf152d57a4c909bf408407924166e981dce84ee3.zip |
Put instruction names into an indexed string table on the side, removing a pointer from MCInstrDesc.
Make them accessible through MCInstrInfo. They are only used for debugging purposes so this doesn't
have an impact on performance. X86MCTargetDesc.o goes from 630K to 461K on x86_64.
llvm-svn: 150245
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 00d2e14c656..fc8c531b5d9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5910,7 +5910,7 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const { if (G) if (const TargetInstrInfo *TII = G->getTarget().getInstrInfo()) if (getMachineOpcode() < TII->getNumOpcodes()) - return TII->get(getMachineOpcode()).getName(); + return TII->getName(getMachineOpcode()); return "<<Unknown Machine Node #" + utostr(getOpcode()) + ">>"; } if (G) { |