[all-commits] [llvm/llvm-project] 77501b: [IPO] Simplify the module inliner loop (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Fri Sep 16 08:56:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77501bfab85c6620d4eb93af609946086999aa9f
      https://github.com/llvm/llvm-project/commit/77501bfab85c6620d4eb93af609946086999aa9f
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/ModuleInliner.cpp

  Log Message:
  -----------
  [IPO] Simplify the module inliner loop (NFC)

In the bottom-up inliner, we have a two-level nested "while" loop,
with the inner one grouping call sites with the same caller.  We need
to do so to keep CGSCC up to date.

Now, with the module inliner, we don't have any per-caller work.  We
don't update CGSCC.  Plus, the caller will likely keep changing as we
pop call sites in some priority order.

This patch simply removes the inner "while" loop while indenting its
body.  Further cleanup is possible, but that's left for follow-up
patches.

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




More information about the All-commits mailing list