summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2018-04-30 18:58:57 +0000
committerRoman Tereshin <rtereshin@apple.com>2018-04-30 18:58:57 +0000
commit46f838f3707183682fe0cd78601e85e089c35aa3 (patch)
treed4b157e8e0bfe94a4e04cfe9ed925eea52076bf0 /llvm/lib/CodeGen/MachineFunction.cpp
parentd47df260ba98b03d70c293fccae480d240841dce (diff)
downloadbcm5719-llvm-46f838f3707183682fe0cd78601e85e089c35aa3.tar.gz
bcm5719-llvm-46f838f3707183682fe0cd78601e85e089c35aa3.zip
[MIR] Reset unique MBB numbering in MachineFunction::reset()
No need to waste space nor number MBBs differently if MF gets recreated. Reviewers: qcolombet, stoklund, t.p.northover, bogner, javed.absar Reviewed By: qcolombet Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D46078 llvm-svn: 331213
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index fa38a97862f..e47aeb64910 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -196,6 +196,7 @@ void MachineFunction::clear() {
// Do call MachineBasicBlock destructors, it contains std::vectors.
for (iterator I = begin(), E = end(); I != E; I = BasicBlocks.erase(I))
I->Insts.clearAndLeakNodesUnsafely();
+ MBBNumbering.clear();
InstructionRecycler.clear(Allocator);
OperandRecycler.clear(Allocator);
OpenPOWER on IntegriCloud