llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27k stars 11.06k forks source link

llvm/test/Transforms/SampleProfile/csspgo-import-list.ll fails in -DLLVM_ENABLE_EXPENSIVE_CHECKS=on builds #97108

Open MaskRay opened 2 weeks ago

MaskRay commented 2 weeks ago

The test fails in -DLLVM_ENABLE_EXPENSIVE_CHECKS=on -DLLVM_ENABLE_ASSERTIONS=on builds, both Debug and Release.

At llvm/lib/Transforms/IPO/SampleProfile.cpp:1420, the initialized NewCandidate may have a null CalleeSamples, leading to assert(LCS && RCS && "Expect non-null FunctionSamples"); failure in (anonymous namespace)::CandidateComparer::operator()

@WenleiHe

WenleiHe commented 2 weeks ago

Thanks for flagging, we will take a look.