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

aeubanks via All-commits all-commits at lists.llvm.org
Wed Jan 12 08:42:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5be48c66d3e5e8be21805c3a33dc67a20e258be
      https://github.com/llvm/llvm-project/commit/d5be48c66d3e5e8be21805c3a33dc67a20e258be
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-01-12 (Wed, 12 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

Reviewed By: nikic, mtrofin

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




More information about the All-commits mailing list