diff options
author | Richard Biener <rguenther@suse.de> | 2024-06-25 15:41:57 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-06-25 16:15:44 +0200 |
commit | 3587bfae391616d155de0c9cbe98206634f3ed6b (patch) | |
tree | a94a630f06f54a640e4280c45ee25fe35aa0beb4 /gcc | |
parent | d27049a38a4c07fa1e662ffd66df3f15d330503f (diff) | |
download | gcc-3587bfae391616d155de0c9cbe98206634f3ed6b.zip gcc-3587bfae391616d155de0c9cbe98206634f3ed6b.tar.gz gcc-3587bfae391616d155de0c9cbe98206634f3ed6b.tar.bz2 |
GORI cleanups
The following replaces conditional is_export_p calls as is_export_p
handles a NULL bb itself.
* gimple-range-gori.cc (gori_compute::may_recompute_p):
Call is_export_p with NULL bb.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gimple-range-gori.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc index 275283a4..a31e3be 100644 --- a/gcc/gimple-range-gori.cc +++ b/gcc/gimple-range-gori.cc @@ -1332,18 +1332,14 @@ gori_compute::may_recompute_p (tree name, basic_block bb, int depth) gcc_checking_assert (depth >= 1); } - bool res = (bb ? m_map.is_export_p (dep1, bb) - : m_map.is_export_p (dep1)); + bool res = m_map.is_export_p (dep1, bb); if (res || depth <= 1) return res; // Check another level of recomputation. return may_recompute_p (dep1, bb, --depth); } // Two dependencies terminate the depth of the search. - if (bb) - return m_map.is_export_p (dep1, bb) || m_map.is_export_p (dep2, bb); - else - return m_map.is_export_p (dep1) || m_map.is_export_p (dep2); + return m_map.is_export_p (dep1, bb) || m_map.is_export_p (dep2, bb); } // Return TRUE if NAME can be recomputed on edge E. If any direct dependent |