diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-06-26 22:06:47 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-06-26 22:06:47 +0000 |
commit | f48e982706c1e40ae1d2321e55a9595c1a16cfe1 (patch) | |
tree | ae6879c201f18ce7cf991b578cc5c084f1e1a56c /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 810551a694e1ba7dd9b7897d60efb129173c8e15 (diff) | |
download | bcm5719-llvm-f48e982706c1e40ae1d2321e55a9595c1a16cfe1.tar.gz bcm5719-llvm-f48e982706c1e40ae1d2321e55a9595c1a16cfe1.zip |
CodeGen: Push the ModuleSlotTracker through MachineOperands
Push `ModuleSlotTracker` through `MachineOperand`s, dropping the time
for `llc -print-machineinstrs` on the testcase in PR23865 from ~13
seconds to ~9 seconds. Now `SlotTracker::processFunctionMetadata()`
accounts for only 8% of the runtime, which seems reasonable.
llvm-svn: 240845
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index ea73baf5f47..5d3f7ebaed2 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -305,7 +305,7 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, OS << '\t'; if (I->isInsideBundle()) OS << " * "; - I->print(OS); + I->print(OS, MST); } // Print the successors of this block according to the CFG. |