[llvm] [nfc][mlgo] Incrementally update DominatorTreeAnalysis in FunctionPropertiesAnalysis (PR #104867)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 13:41:32 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/3922
Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/Inline/ML/coro-split-func-levels.ll' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
RUN: at line 2: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -passes='coro-early,scc-oz-module-inliner,print<inline-advisor>' -enable-ml-inliner=release -keep-inline-advisor-for-printing < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/coro-split-func-levels.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S '-passes=coro-early,scc-oz-module-inliner,print<inline-advisor>' -enable-ml-inliner=release -keep-inline-advisor-for-printing
opt: /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp:390: llvm::DominatorTree& llvm::FunctionPropertiesUpdater::getUpdatedDominatorTree(llvm::FunctionAnalysisManager&) const: Assertion `DT.getNode(BB)' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -passes=coro-early,scc-oz-module-inliner,print<inline-advisor> -enable-ml-inliner=release -keep-inline-advisor-for-printing
1. Running pass "require<globals-aa>,function(invalidate<aa>),require<profile-summary>,cgscc(devirt<4>(inline,function-attrs<skip-non-recursive-function-attrs>,function<eager-inv;no-rerun>(sroa<modify-cfg>,early-cse<memssa>,speculative-execution<only-if-divergent-target>,jump-threading,correlated-propagation,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,aggressive-instcombine,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,reassociate,constraint-elimination,loop-mssa(loop-instsimplify,loop-simplifycfg,licm<no-allowspeculation>,loop-rotate<no-header-duplication;no-prepare-for-lto>,licm<allowspeculation>,simple-loop-unswitch<no-nontrivial;trivial>),simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,loop(loop-idiom,indvars,simple-loop-unswitch<no-nontrivial;trivial>,loop-deletion,loop-unroll-full),sroa<modify-cfg>,vector-combine,mldst-motion<no-split-footer-bb>,gvn<>,sccp,bdce,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,jump-threading,correlated-propagation,adce,memcpyopt,dse,move-auto-init,loop-mssa(licm<allowspeculation>),coro-elide,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;hoist-common-insts;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>),function-attrs,function(require<should-not-run-function-passes>),coro-split)),function(invalidate<should-not-run-function-passes>),cgscc(devirt<4>())" on module "<stdin>"
2. Running pass "cgscc(devirt<4>(inline,function-attrs<skip-non-recursive-function-attrs>,function<eager-inv;no-rerun>(sroa<modify-cfg>,early-cse<memssa>,speculative-execution<only-if-divergent-target>,jump-threading,correlated-propagation,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,aggressive-instcombine,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,reassociate,constraint-elimination,loop-mssa(loop-instsimplify,loop-simplifycfg,licm<no-allowspeculation>,loop-rotate<no-header-duplication;no-prepare-for-lto>,licm<allowspeculation>,simple-loop-unswitch<no-nontrivial;trivial>),simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,loop(loop-idiom,indvars,simple-loop-unswitch<no-nontrivial;trivial>,loop-deletion,loop-unroll-full),sroa<modify-cfg>,vector-combine,mldst-motion<no-split-footer-bb>,gvn<>,sccp,bdce,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>,jump-threading,correlated-propagation,adce,memcpyopt,dse,move-auto-init,loop-mssa(licm<allowspeculation>),coro-elide,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-lookup;keep-loops;hoist-common-insts;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-use-loop-info;no-verify-fixpoint>),function-attrs,function(require<should-not-run-function-passes>),coro-split))" on module "<stdin>"
#0 0x0000558428905128 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x5399128)
#1 0x000055842890250c SignalHandler(int) Signals.cpp:0:0
#2 0x00007f02ac1e4140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13140)
#3 0x00007f02abce5ce1 raise (/lib/x86_64-linux-gnu/libc.so.6+0x38ce1)
#4 0x00007f02abccf537 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22537)
#5 0x00007f02abccf40f (/lib/x86_64-linux-gnu/libc.so.6+0x2240f)
#6 0x00007f02abcde662 (/lib/x86_64-linux-gnu/libc.so.6+0x31662)
#7 0x0000558427a32d21 llvm::FunctionPropertiesUpdater::getUpdatedDominatorTree(llvm::AnalysisManager<llvm::Function>&) const (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x44c6d21)
#8 0x0000558427a33802 llvm::FunctionPropertiesUpdater::finish(llvm::AnalysisManager<llvm::Function>&) const (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x44c7802)
#9 0x0000558427b3a075 llvm::MLInlineAdvisor::onSuccessfulInlining(llvm::MLInlineAdvice const&, bool) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x45ce075)
#10 0x0000558426d4322f llvm::InlinerPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x37d722f)
#11 0x00005584263f397e llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::InlinerPass, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) crtstuff.c:0:0
#12 0x000055842798bc92 llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x441fc92)
#13 0x00005584263f273e llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) crtstuff.c:0:0
#14 0x0000558427992d36 llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x4426d36)
#15 0x00005584263f275e llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::DevirtSCCRepeatedPass, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) crtstuff.c:0:0
#16 0x000055842798d643 llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x4421643)
#17 0x00005584263f271e llvm::detail::PassModel<llvm::Module, llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) crtstuff.c:0:0
#18 0x00005584286f9275 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x518d275)
#19 0x0000558426d4099d llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x37d499d)
#20 0x00005584263f235e llvm::detail::PassModel<llvm::Module, llvm::ModuleInlinerWrapperPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) crtstuff.c:0:0
#21 0x00005584286f9275 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0x518d275)
#22 0x00005584241443aa llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0xbd83aa)
#23 0x0000558424136dcf optMain (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0xbcadcf)
#24 0x00007f02abcd0d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d0a)
#25 0x000055842412d0ea _start (/b/ml-opt-devrel-x86-64-b1/build/bin/opt+0xbc10ea)
/b/ml-opt-devrel-x86-64-b1/build/test/Transforms/Inline/ML/Output/coro-split-func-levels.ll.script: line 1: 425122 Aborted /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -passes='coro-early,scc-oz-module-inliner,print<inline-advisor>' -enable-ml-inliner=release -keep-inline-advisor-for-printing < /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/Inline/ML/coro-split-func-levels.ll
--
********************
```
https://github.com/llvm/llvm-project/pull/104867
More information about the llvm-commits
mailing list