[PATCH] D134056: [ModuleInliner] Move InlinePriority and its derived classes to InlineOrder.cpp (NFC)
Liqiang Tao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 23:57:59 PDT 2023
taolq added inline comments.
================
Comment at: llvm/lib/Analysis/InlineOrder.cpp:124
+ while (PriorityPtr->updateAndCheckDecreased(Heap.front())) {
+ std::pop_heap(Heap.begin(), Heap.end(), isLess);
+ std::push_heap(Heap.begin(), Heap.end(), isLess);
----------------
kosarev wrote:
> It looks something is not quite right about how this heap is formed. An `assert(std::is_heap(Heap.begin(), Heap.end(), isLess));` added before that line would fail on `Transforms/Inline/nested-inline.ll`. Can anyone take a look, please?
>
> Originally caught on a build with libc++'s consistency checks enabled, <https://github.com/llvm/llvm-project/issues/68594>.
Thanks for the information. I will take a look.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134056/new/
https://reviews.llvm.org/D134056
More information about the llvm-commits
mailing list