https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118659

            Bug ID: 118659
           Summary: get_known_nonzero_bits_1 should use wi::bit_and_not
                    instead of `a & ~b`
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog, internal-improvement
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Just a small optimization.

Currently the code does:

  return bm.value () & ~bm.mask ();


But this would be better if we use wi::bit_and_not just so there is no extra
temporary for the ~ part.

Reply via email to