This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/83822] New: trunk/gcc/config/rs6000/rs6000-string.c:970]: (style) Redundant condition
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Jan 2018 18:54:48 +0000
- Subject: [Bug target/83822] New: trunk/gcc/config/rs6000/rs6000-string.c:970]: (style) Redundant condition
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83822
Bug ID: 83822
Summary: trunk/gcc/config/rs6000/rs6000-string.c:970]: (style)
Redundant condition
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
trunk/gcc/config/rs6000/rs6000-string.c:970]: (style) Redundant condition:
bytes_is_const. '!A || (A && B)' is equivalent to '!A || B'
Source code is
if (!bytes_is_const
|| (bytes_is_const && bytes_remaining >= load_mode_size))