diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-29 21:21:12 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-29 21:21:12 +0000 |
commit | ab2c1de89558662bbdeed695778f46b4f64fa2d5 (patch) | |
tree | 7ce5c1502e93e296b04ac2412cba4ab28999e65b /gcc/tree-ssa-address.c | |
parent | 1e1472ccb9ce106e0a8dc6b4d38ea2b6c5a9028d (diff) | |
download | gcc-ab2c1de89558662bbdeed695778f46b4f64fa2d5.tar.gz |
- Fix comment typos that I'd introducted.
- Fix spurious whitespace differences.
- Use const X & instead of X for *wide_int parameters.
- Fuse declarations and initialisers.
- Avoid unnecessary *wide_int temporaries (e.g. wide_int (x) == 0
-> wi::eq_p (x, 0)).
- Fix some long lines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@204183 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r-- | gcc/tree-ssa-address.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index cdf8a5a8b57..0d587896896 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -552,13 +552,12 @@ most_expensive_mult_to_index (tree type, struct mem_address *parts, addr_space_t as = TYPE_ADDR_SPACE (type); enum machine_mode address_mode = targetm.addr_space.address_mode (as); HOST_WIDE_INT coef; - offset_int best_mult, amult, amult_neg; unsigned best_mult_cost = 0, acost; tree mult_elt = NULL_TREE, elt; unsigned i, j; enum tree_code op_code; - best_mult = 0; + offset_int best_mult = 0; for (i = 0; i < addr->n; i++) { if (!wi::fits_shwi_p (addr->elts[i].coef)) @@ -584,8 +583,8 @@ most_expensive_mult_to_index (tree type, struct mem_address *parts, /* Collect elements multiplied by best_mult. */ for (i = j = 0; i < addr->n; i++) { - amult = offset_int::from (addr->elts[i].coef, SIGNED); - amult_neg = -wi::sext (amult, TYPE_PRECISION (addr->type)); + offset_int amult = offset_int::from (addr->elts[i].coef, SIGNED); + offset_int amult_neg = -wi::sext (amult, TYPE_PRECISION (addr->type)); if (amult == best_mult) op_code = PLUS_EXPR; |