diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-26 11:30:59 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-06-26 11:30:59 +0000 |
commit | a000002428287ab8c08d525e6f3bb7e22df07a6f (patch) | |
tree | a86fcac3bdf589730e218ba78c4d493b3e075b30 /llvm/lib/CodeGen | |
parent | e9afee2910e907848f59a7c66d0ef6dbfe8b349f (diff) | |
download | bcm5719-llvm-a000002428287ab8c08d525e6f3bb7e22df07a6f.tar.gz bcm5719-llvm-a000002428287ab8c08d525e6f3bb7e22df07a6f.zip |
VNInfos don't need to be destructed anymore.
llvm-svn: 106943
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/LiveStackAnalysis.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index fbf2833756e..5f5aa3b203f 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -87,8 +87,8 @@ void LiveIntervals::releaseMemory() { r2iMap_.clear(); - // Release VNInfo memroy regions after all VNInfo objects are dtor'd. - VNInfoAllocator.DestroyAll(); + // Release VNInfo memory regions, VNInfo objects don't need to be dtor'd. + VNInfoAllocator.Reset(); while (!CloneMIs.empty()) { MachineInstr *MI = CloneMIs.back(); CloneMIs.pop_back(); diff --git a/llvm/lib/CodeGen/LiveStackAnalysis.cpp b/llvm/lib/CodeGen/LiveStackAnalysis.cpp index 798b9b939cd..709e2c6d5ca 100644 --- a/llvm/lib/CodeGen/LiveStackAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveStackAnalysis.cpp @@ -35,8 +35,8 @@ void LiveStacks::getAnalysisUsage(AnalysisUsage &AU) const { } void LiveStacks::releaseMemory() { - // Release VNInfo memroy regions after all VNInfo objects are dtor'd. - VNInfoAllocator.DestroyAll(); + // Release VNInfo memory regions, VNInfo objects don't need to be dtor'd. + VNInfoAllocator.Reset(); S2IMap.clear(); S2RCMap.clear(); } |