[PATCH] D134056: [ModuleInliner] Move InlinePriority and its derived classes to InlineOrder.cpp (NFC)
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 03:36:59 PDT 2023
kosarev 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);
----------------
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>.
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