[all-commits] [llvm/llvm-project] 2cadef: [clang] Teardown new PM data structures before run...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Oct 12 14:17:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cadef6537b351cc696e2de1f5c8e9fbe6055980
      https://github.com/llvm/llvm-project/commit/2cadef6537b351cc696e2de1f5c8e9fbe6055980
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp

  Log Message:
  -----------
  [clang] Teardown new PM data structures before running codegen pipeline

Do this by refactoring the optimization and codegen pipelines into separate functions.

This saves a tiny bit of memory in non-LTO builds [1].

[1] https://llvm-compile-time-tracker.com/compare.php?from=fbddf22ef72d3c2e9b14e1501841b03380eef12b&to=cd276df52eb6f2b84a8e1efe5318460c6debf82d&stat=max-rss

Reviewed By: dblaikie

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




More information about the All-commits mailing list