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/postreload.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/postreload.c')
-rw-r--r-- | gcc/postreload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index cdfe7b7ddfa..b9d97174caf 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -304,12 +304,14 @@ reload_cse_simplify_set (rtx set, rtx insn) { case ZERO_EXTEND: result = wide_int (std::make_pair (this_rtx, GET_MODE (src))); - if (GET_MODE_PRECISION (GET_MODE (src)) > GET_MODE_PRECISION (word_mode)) + if (GET_MODE_PRECISION (GET_MODE (src)) + > GET_MODE_PRECISION (word_mode)) result = wi::zext (result, GET_MODE_PRECISION (word_mode)); break; case SIGN_EXTEND: result = wide_int (std::make_pair (this_rtx, GET_MODE (src))); - if (GET_MODE_PRECISION (GET_MODE (src)) > GET_MODE_PRECISION (word_mode)) + if (GET_MODE_PRECISION (GET_MODE (src)) + > GET_MODE_PRECISION (word_mode)) result = wi::sext (result, GET_MODE_PRECISION (word_mode)); break; default: |