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

            Bug ID: 118894
           Summary: get_addr_base_and_unit_offset and
                    get_addr_base_and_unit_offset_1 could be consolidated
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: internal-improvement
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

get_addr_base_and_unit_offset just calls get_addr_base_and_unit_offset_1 with a
the last argument being null argument (for the valueize).
So these 2 functions can be combined into one where the default argument of the
valueize for get_addr_base_and_unit_offset is a nullptr.

This should give a slight performance improvement (if NOT using LTO).

Reply via email to