[all-commits] [llvm/llvm-project] d3b95e: [ModuleInliner] Remove InlineOrder::front (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Sep 18 08:50:00 PDT 2022


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

  Changed paths:
    M llvm/include/llvm/Analysis/InlineOrder.h
    M llvm/lib/Analysis/InlineOrder.cpp
    M llvm/lib/Transforms/IPO/ModuleInliner.cpp

  Log Message:
  -----------
  [ModuleInliner] Remove InlineOrder::front (NFC)

InlineOrder::front is a remnant from the era when we had a nested
"while" loops in the module inliner, with the inner one grouping the
call sites with the same caller.

Now that we have a simple "while" loop draining the priority queue, we
can just use InlineOrder::pop.

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




More information about the All-commits mailing list