[all-commits] [llvm/llvm-project] 9a0fe1: [Inline] Attempt to delete any discardable if unus...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jan 13 14:49:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a0fe1b0fc23098d961750eb5310f307f4bb5ee5
      https://github.com/llvm/llvm-project/commit/9a0fe1b0fc23098d961750eb5310f307f4bb5ee5
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-01-13 (Thu, 13 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/Inliner.cpp
    A llvm/test/Transforms/Inline/delete-function-with-metadata-use.ll
    A llvm/test/Transforms/Inline/delete-unused-function.ll

  Log Message:
  -----------
  [Inline] Attempt to delete any discardable if unused functions

Previously we limited ourselves to only internal/private functions. We
can also delete linkonce_odr functions.

Minor compile time wins:
https://llvm-compile-time-tracker.com/compare.php?from=d51e3474e060cb0e90dc2e2487f778b0d3e6a8de&to=bccffe3f8d5dd4dda884c9ac1f93e51772519cad&stat=instructions

Major memory wins on tramp3d:
https://llvm-compile-time-tracker.com/compare.php?from=d51e3474e060cb0e90dc2e2487f778b0d3e6a8de&to=bccffe3f8d5dd4dda884c9ac1f93e51772519cad&stat=max-rss

Relanding with fix for compile times D117236.

Reviewed By: nikic, mtrofin

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




More information about the All-commits mailing list