diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-10-14 16:14:34 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-10-14 23:37:58 +0200 |
commit | d71e1be7c3a3e2058d1243e6a090e421c9fd7f85 (patch) | |
tree | 7fcbf09720bb7d3af930511b9c970b1fe52fa9ad /gcc/tree-ssa-threadbackward.c | |
parent | 4f87d4c5aec9a1eaca7be61e5c8aab4d6e61b1d8 (diff) | |
download | gcc-d71e1be7c3a3e2058d1243e6a090e421c9fd7f85.zip gcc-d71e1be7c3a3e2058d1243e6a090e421c9fd7f85.tar.gz gcc-d71e1be7c3a3e2058d1243e6a090e421c9fd7f85.tar.bz2 |
Minor cleanups to backward threader.
Tested on x86-64 Linux.
gcc/ChangeLog:
* tree-ssa-threadbackward.c (class back_threader): Make m_imports
an auto_bitmap.
(back_threader::~back_threader): Do not release m_path.
Diffstat (limited to 'gcc/tree-ssa-threadbackward.c')
-rw-r--r-- | gcc/tree-ssa-threadbackward.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-ssa-threadbackward.c b/gcc/tree-ssa-threadbackward.c index 496b68e..1999ccf 100644 --- a/gcc/tree-ssa-threadbackward.c +++ b/gcc/tree-ssa-threadbackward.c @@ -105,7 +105,7 @@ private: hash_set<basic_block> m_visited_bbs; // The set of SSA names, any of which could potentially change the // value of the final conditional in a path. - bitmap m_imports; + auto_bitmap m_imports; // The last statement in the path. gimple *m_last_stmt; // This is a bit of a wart. It's used to pass the LHS SSA name to @@ -125,13 +125,10 @@ back_threader::back_threader (bool speed_p) m_solver (m_ranger, /*resolve=*/false) { m_last_stmt = NULL; - m_imports = BITMAP_ALLOC (NULL); } back_threader::~back_threader () { - m_path.release (); - BITMAP_FREE (m_imports); } // Register the current path for jump threading if it's profitable to |