[all-commits] [llvm/llvm-project] b9ae0b: [Assignment Tracking] Initialise maps with minimum...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed Feb 22 23:43:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9ae0b09810cc24d1a90520e07ba9ea17fdc54b1
      https://github.com/llvm/llvm-project/commit/b9ae0b09810cc24d1a90520e07ba9ea17fdc54b1
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp

  Log Message:
  -----------
  [Assignment Tracking] Initialise maps with minimum required number of entries

The size lower bound is known - the `Join` map in both cases gets an entry for
each variable from both input maps (union).

This reduces the number of times the map grows, improving ReleaseLTO-g compile
time for CTMark projects by an average of around 0.2%.

Reviewed By: scott.linder

Differential Revision: https://reviews.llvm.org/D144486




More information about the All-commits mailing list