llvm.org GIT mirror llvm / 83eafdf
CodeGen: Let the BumpPtrAllocator free the elements of indexList The indexList's nodes are all allocated on a BumpPtrAllocator, so it's more efficient to let them be freed when it goes away, rather than deleting them directly. This is a follow up to r254794. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254808 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 4 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
373373
374374 SlotIndexes() : MachineFunctionPass(ID) {
375375 initializeSlotIndexesPass(*PassRegistry::getPassRegistry());
376 }
377
378 ~SlotIndexes() {
379 // The indexList's nodes are all allocated in the BumpPtrAllocator.
380 indexList.clearAndLeakNodesUnsafely();
376381 }
377382
378383 void getAnalysisUsage(AnalysisUsage &au) const override;