This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/83822] New: trunk/gcc/config/rs6000/rs6000-string.c:970]: (style) Redundant condition


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))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]