diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-03-31 16:17:39 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-03-31 16:17:39 +0200 |
commit | c8f4b642d2bb4f5de57e7ac6a1385682f0e0dbe5 (patch) | |
tree | 9ce005e072aa3efef18081590d4888f601398d04 /gcc/gimple-range.cc | |
parent | ff7ae60c2709ede6845356dc33b8bd90ab900da1 (diff) | |
download | gcc-c8f4b642d2bb4f5de57e7ac6a1385682f0e0dbe5.zip gcc-c8f4b642d2bb4f5de57e7ac6a1385682f0e0dbe5.tar.gz gcc-c8f4b642d2bb4f5de57e7ac6a1385682f0e0dbe5.tar.bz2 |
Misc cleanups and cosmetic changes to ranger.
Diffstat (limited to 'gcc/gimple-range.cc')
-rw-r--r-- | gcc/gimple-range.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc index a351a9f..2bed7da 100644 --- a/gcc/gimple-range.cc +++ b/gcc/gimple-range.cc @@ -224,8 +224,8 @@ gimple_range_fold (const gimple *stmt, irange &res, const irange &r1) gcc_checking_assert (gimple_range_handler (stmt)); tree type = gimple_expr_type (stmt); + // Unary SSA operations require the LHS type as the second range. int_range<1> r2 (type); - // Single ssa operations require the LHS type as the second range. return gimple_range_fold (stmt, res, r1, r2); } @@ -261,9 +261,9 @@ gimple_range_operand1 (const gimple *stmt) switch (gimple_code (stmt)) { case GIMPLE_COND: - return gimple_cond_lhs (stmt); + return gimple_cond_lhs (stmt); case GIMPLE_ASSIGN: - { + { tree expr = gimple_assign_rhs1 (stmt); if (gimple_assign_rhs_code (stmt) == ADDR_EXPR) { @@ -274,7 +274,7 @@ gimple_range_operand1 (const gimple *stmt) // ADDR_EXPR and do the right thing. tree base = get_base_address (TREE_OPERAND (expr, 0)); if (base != NULL_TREE && TREE_CODE (base) == MEM_REF) - { + { // If the base address is an SSA_NAME, return it. tree b = TREE_OPERAND (base, 0); if (TREE_CODE (b) == SSA_NAME) @@ -284,7 +284,7 @@ gimple_range_operand1 (const gimple *stmt) return expr; } default: - break; + break; } return NULL; } |