diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-15 04:34:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-03-15 04:34:43 +0000 |
commit | b1403b691a24fae2a96fa7ce5b93c3395e7bfd05 (patch) | |
tree | 9000ae815c21bbe19c77f3316301fd75964c6e93 /gcc/fold-const.c | |
parent | 928499cfeee9cba7cc63e4c8547f88306d8d45fb (diff) | |
download | gcc-b1403b691a24fae2a96fa7ce5b93c3395e7bfd05.zip gcc-b1403b691a24fae2a96fa7ce5b93c3395e7bfd05.tar.gz gcc-b1403b691a24fae2a96fa7ce5b93c3395e7bfd05.tar.bz2 |
compiler: eliminate bound checks in append expression
The compiler generates two array index expressions when lowering
an append expression. Currently they generate bound checks.
Bound checks are not necessary in this case, as we know the slice
has, or will grow to, enough length and capacity. Eliminate them.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/166817
From-SVN: r269699
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions