Skip to content
  • Erik Verbruggen's avatar
    V4 IR: lower the number of memory allocations. · 481447ae
    Erik Verbruggen authored
    
    
    By using vectors indexed on temp-id instead of hashes.
    
    Also record the order in which intervals are removed from the list of
    life ranges. This order is the inverse of the list of ranges sorted by
    start position. So instead of building _sortedIntervals and then sorting
    them, reverse iterating over the finished intervals will do the same.
    
    This speeds up the interval calculation by 40%.
    
    Change-Id: If3c78496d7ca2d0e23f0a51302dcd1094dad7d4a
    Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
    481447ae