diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-04-28 10:06:07 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-04-28 10:07:31 +0200 |
commit | 413b5adf6ae9e062c6f5804c18d6520d867b996e (patch) | |
tree | 45f76321b843192645942e9c89f56adb7c10bd39 | |
parent | a55f167fde491f5575f92ea377f90bf69f9db76c (diff) | |
download | gcc-413b5adf6ae9e062c6f5804c18d6520d867b996e.zip gcc-413b5adf6ae9e062c6f5804c18d6520d867b996e.tar.gz gcc-413b5adf6ae9e062c6f5804c18d6520d867b996e.tar.bz2 |
Coding convention cleanups.
-rw-r--r-- | gcc/gimple-ranger.cc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gcc/gimple-ranger.cc b/gcc/gimple-ranger.cc index bbd62a4..e3704bc 100644 --- a/gcc/gimple-ranger.cc +++ b/gcc/gimple-ranger.cc @@ -498,27 +498,25 @@ global_ranger::calculate_and_dump (FILE *output) fprintf (output, "\n"); } -// Return a static range for NAME on entry to basic block BB in R. -// If calc is true, Fill any cache entries required between BB and the def -// block for NAME. Otherwise, return false if the cache is empty. +// Return a static range for NAME on entry to basic block BB in R. If +// calc is true, fill any cache entries required between BB and the +// def block for NAME. Otherwise, return false if the cache is empty. bool global_ranger::block_range (irange &r, basic_block bb, tree name, bool calc) { - - gimple *def_stmt = SSA_NAME_DEF_STMT (name); - basic_block def_bb = NULL; - gcc_checking_assert (gimple_range_ssa_p (name)); if (calc) { + gimple *def_stmt = SSA_NAME_DEF_STMT (name); + basic_block def_bb = NULL; if (def_stmt) def_bb = gimple_bb (def_stmt);; if (!def_bb) { // If we get to the entry block, this better be a default def - // or range_on_entry was called fo a block not dominated by + // or range_on_entry was called for a block not dominated by // the def. This would be a bug. gcc_checking_assert (SSA_NAME_IS_DEFAULT_DEF (name)); def_bb = ENTRY_BLOCK_PTR_FOR_FN (cfun); @@ -567,9 +565,8 @@ global_ranger::edge_range (irange &r, edge e, tree name) r = gimple_range_global (name); } } - else - if (!m_on_entry.get_bb_range (r, name, src)) - return false; + else if (!m_on_entry.get_bb_range (r, name, src)) + return false; // Check if pointers have any non-null dereferences. Non-call // exceptions mean we could throw in the middle of he block, so just |