aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-deps.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-01-18 13:23:27 +0100
committerRichard Biener <rguenther@suse.de>2024-01-18 14:13:03 +0100
commit895a2138265fd9cace3588404523122f73626d2a (patch)
tree47e3097599c3ea22b85d94e8eb257ebbe5d9541a /gcc/sched-deps.cc
parent5b421c2a5b429fcebd7ee6444a5677633df0f28a (diff)
downloadgcc-895a2138265fd9cace3588404523122f73626d2a.zip
gcc-895a2138265fd9cace3588404523122f73626d2a.tar.gz
gcc-895a2138265fd9cace3588404523122f73626d2a.tar.bz2
tree-optimization/113475 - fix memory leak in phi_analyzer
phi_analyzer leaks all phi_group objects it allocates. The following fixes this by maintaining a vector of allocated objects and release them when destroying the phi_analyzer object. PR tree-optimization/113475 * gimple-range-phi.h (phi_analyzer::m_phi_groups): New. * gimple-range-phi.cc (phi_analyzer::phi_analyzer): Initialize. (phi_analyzer::~phi_analyzer): Deallocate and free collected phi_grous. (phi_analyzer::process_phi): Record allocated phi_groups.
Diffstat (limited to 'gcc/sched-deps.cc')
0 files changed, 0 insertions, 0 deletions