aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2017-07-14 09:11:20 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2017-07-14 09:11:20 +0000
commita848c710910d783a7c3b3c29dd481df596b016c2 (patch)
tree16727755c4eebed5031ee57d05c2111de038c3b3 /gcc
parent144e36a796e9f293817c6d0a3413fa3fcc51c7ad (diff)
downloadgcc-a848c710910d783a7c3b3c29dd481df596b016c2.zip
gcc-a848c710910d783a7c3b3c29dd481df596b016c2.tar.gz
gcc-a848c710910d783a7c3b3c29dd481df596b016c2.tar.bz2
Update comment in gimple-ssa-store-merging.c
* gimple-ssa-store-merging.c (clear_bit_region): Replace reference to loop in comment with memset. From-SVN: r250201
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gimple-ssa-store-merging.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0a970d7..a4f5397 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
+ loop in comment with memset.
+
2017-07-14 Martin Liska <mliska@suse.cz>
* cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c
index 64b8351..5e92273 100644
--- a/gcc/gimple-ssa-store-merging.c
+++ b/gcc/gimple-ssa-store-merging.c
@@ -331,8 +331,8 @@ clear_bit_region (unsigned char *ptr, unsigned int start,
else if (start == 0 && len > BITS_PER_UNIT)
{
unsigned int nbytes = len / BITS_PER_UNIT;
- /* We could recurse on each byte but do the loop here to avoid
- recursing too deep. */
+ /* We could recurse on each byte but we clear whole bytes, so a simple
+ memset will do. */
memset (ptr, '\0', nbytes);
/* Clear the remaining sub-byte region if there is one. */
if (len % BITS_PER_UNIT != 0)