[all-commits] [llvm/llvm-project] aed757: [BOLT] Remove old layout from function layout

Fabian Parzefall via All-commits all-commits at lists.llvm.org
Wed Aug 17 15:10:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aed75748dec888ece47b1333274d0d4ac25d9fdf
      https://github.com/llvm/llvm-project/commit/aed75748dec888ece47b1333274d0d4ac25d9fdf
  Author: Fabian Parzefall <parzefall at fb.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M bolt/include/bolt/Core/FunctionLayout.h
    M bolt/include/bolt/Passes/BinaryPasses.h
    M bolt/lib/Core/FunctionLayout.cpp
    M bolt/lib/Passes/BinaryPasses.cpp

  Log Message:
  -----------
  [BOLT] Remove old layout from function layout

To track whether a function's new layout is different from its old
layout when updating it, the old layout would be kept around in memory
indefinitely (if the new layout is different). This was used only for
debugging/logging purposes. This patch forces the caller of function
layout's update method to copy the old layout into a temporary if they
need it by removing the old layout fields.

Reviewed By: rafauler

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




More information about the All-commits mailing list