Skip to content

Commit 3ec9c44

Browse files
author
ienkovich
committed
* tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
gimple_build_nop calls. (chkp_find_bounds_for_elem): Likewise. (chkp_get_zero_bounds): Likewise. (chkp_get_none_bounds): Likewise. (chkp_get_bounds_by_definition): Likewise. (chkp_generate_extern_var_bounds): Likewise. (chkp_get_bounds_for_decl_addr): Likewise. (chkp_get_bounds_for_string_cst): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223434 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent ad47885 commit 3ec9c44

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

gcc/ChangeLog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2015-05-20 Ilya Enkovich <[email protected]>
2+
3+
* tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
4+
gimple_build_nop calls.
5+
(chkp_find_bounds_for_elem): Likewise.
6+
(chkp_get_zero_bounds): Likewise.
7+
(chkp_get_none_bounds): Likewise.
8+
(chkp_get_bounds_by_definition): Likewise.
9+
(chkp_generate_extern_var_bounds): Likewise.
10+
(chkp_get_bounds_for_decl_addr): Likewise.
11+
(chkp_get_bounds_for_string_cst): Likewise.
12+
113
2015-05-20 Bin Cheng <[email protected]>
214

315
PR tree-optimization/65447

gcc/tree-chkp.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -1181,10 +1181,10 @@ chkp_maybe_copy_and_register_bounds (tree ptr, tree bnd)
11811181
gimple_stmt_iterator gsi;
11821182

11831183
if (bnd_var)
1184-
copy = make_ssa_name (bnd_var, gimple_build_nop ());
1184+
copy = make_ssa_name (bnd_var);
11851185
else
11861186
copy = make_temp_ssa_name (pointer_bounds_type_node,
1187-
gimple_build_nop (),
1187+
NULL,
11881188
CHKP_BOUND_TMP_NAME);
11891189
bnd = chkp_get_orginal_bounds_for_abnormal_copy (bnd);
11901190
assign = gimple_build_assign (copy, bnd);
@@ -1544,7 +1544,7 @@ chkp_find_bounds_for_elem (tree elem, tree *all_bounds,
15441544
{
15451545
if (!all_bounds[offs / POINTER_SIZE])
15461546
{
1547-
tree temp = make_temp_ssa_name (type, gimple_build_nop (), "");
1547+
tree temp = make_temp_ssa_name (type, NULL, "");
15481548
gimple assign = gimple_build_assign (temp, elem);
15491549
gimple_stmt_iterator gsi;
15501550

@@ -2053,7 +2053,7 @@ chkp_get_zero_bounds (void)
20532053
gimple_stmt_iterator gsi = gsi_start_bb (chkp_get_entry_block ());
20542054
gimple stmt;
20552055

2056-
zero_bounds = chkp_get_tmp_reg (gimple_build_nop ());
2056+
zero_bounds = chkp_get_tmp_reg (NULL);
20572057
stmt = gimple_build_assign (zero_bounds, chkp_get_zero_bounds_var ());
20582058
gsi_insert_before (&gsi, stmt, GSI_SAME_STMT);
20592059
}
@@ -2083,7 +2083,7 @@ chkp_get_none_bounds (void)
20832083
gimple_stmt_iterator gsi = gsi_start_bb (chkp_get_entry_block ());
20842084
gimple stmt;
20852085

2086-
none_bounds = chkp_get_tmp_reg (gimple_build_nop ());
2086+
none_bounds = chkp_get_tmp_reg (NULL);
20872087
stmt = gimple_build_assign (none_bounds, chkp_get_none_bounds_var ());
20882088
gsi_insert_before (&gsi, stmt, GSI_SAME_STMT);
20892089
}
@@ -2738,7 +2738,7 @@ chkp_get_bounds_by_definition (tree node, gimple def_stmt,
27382738
var = chkp_get_bounds_var (SSA_NAME_VAR (node));
27392739
else
27402740
var = make_temp_ssa_name (pointer_bounds_type_node,
2741-
gimple_build_nop (),
2741+
NULL,
27422742
CHKP_BOUND_TMP_NAME);
27432743
else
27442744
var = chkp_get_tmp_var ();
@@ -2918,7 +2918,7 @@ chkp_generate_extern_var_bounds (tree var)
29182918
gimple_seq_add_stmt (&seq, stmt);
29192919

29202920
lb = chkp_build_addr_expr (var);
2921-
size = make_ssa_name (chkp_get_size_tmp_var (), gimple_build_nop ());
2921+
size = make_ssa_name (chkp_get_size_tmp_var ());
29222922

29232923
if (flag_chkp_zero_dynamic_size_as_infinite)
29242924
{
@@ -3015,7 +3015,7 @@ chkp_get_bounds_for_decl_addr (tree decl)
30153015
gimple_stmt_iterator gsi = gsi_start_bb (chkp_get_entry_block ());
30163016
gimple stmt;
30173017

3018-
bounds = chkp_get_tmp_reg (gimple_build_nop ());
3018+
bounds = chkp_get_tmp_reg (NULL);
30193019
stmt = gimple_build_assign (bounds, bnd_var);
30203020
gsi_insert_before (&gsi, stmt, GSI_SAME_STMT);
30213021
}
@@ -3059,7 +3059,7 @@ chkp_get_bounds_for_string_cst (tree cst)
30593059
gimple_stmt_iterator gsi = gsi_start_bb (chkp_get_entry_block ());
30603060
gimple stmt;
30613061

3062-
bounds = chkp_get_tmp_reg (gimple_build_nop ());
3062+
bounds = chkp_get_tmp_reg (NULL);
30633063
stmt = gimple_build_assign (bounds, bnd_var);
30643064
gsi_insert_before (&gsi, stmt, GSI_SAME_STMT);
30653065
}

0 commit comments

Comments
 (0)