llvm / llvm-project

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

Re-enable llvm-reduce bitcode-uselistorder.ll test #64157

Open arsenm opened 11 months ago

arsenm commented 11 months ago

cea72fe34194d58ac1ba9485ee9c9a63cf98a4e6 disabled this test since it sometimes fails and sometimes doesn't:

llvm-reduce: /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/llvm-project/llvm/tools/llvm-reduce/deltas/Delta.cpp:194: void llvm::runDeltaPass(llvm::TestRunner&, llvm::ReductionFunc, llvm::StringRef): Assertion `Test.getProgram().isReduced(Test) && "input module no longer interesting after counting chunks"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.  Program arguments: llvm-reduce -j=1 --abort-on-invalid-reduction --delta-passes=instructions -o /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/build/test/tools/llvm-reduce/Output/bitcode-uselistorder.ll.tmp.reduced.bc --test /usr/bin/python3.10 --test-arg /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/llvm-project/llvm/test/tools/llvm-reduce/Inputs/llvm-dis-and-filecheck.py --test-arg /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/build/bin/llvm-dis --test-arg /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/build/bin/FileCheck --test-arg --check-prefix=INTERESTING --test-arg /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/llvm-project/llvm/test/tools/llvm-reduce/bitcode-uselistorder.ll /home/buildbot/as-builder-4/lld-x86_64-ubuntu-fast/build/test/tools/llvm-reduce/Output/bitcode-uselistorder.ll.tmp.bc
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
arsenm commented 11 months ago

There's a decent chance this is another side effect of recycling the LLVMContext between reduction runs

mizvekov commented 9 months ago

I can reliably, guaranteed, 100%, hit this bug for a 6MB ll file I am trying to reduce. Would that help you?

vivekvpandya commented 5 months ago

I can reliably, guaranteed, 100%, hit this bug for a 6MB ll file I am trying to reduce. Would that help you?

if possible could you please provide that IR file?

mizvekov commented 4 months ago

@vivekvpandya Unfortunately the original problem I was trying to reduce has been fixed on current main, I cannot reproduce anymore.

danilaml commented 3 months ago

Don't know if it's the same issue, but I had it happen on IR that broke SSA during optimization (buggy downstream pass). For some reason, when trying to reduce it using llvm-reduce, I got assert about chunks, while bugpoint worked.