loop extract isn't a well behaved function pass
| Bugzilla Link | 8929 |
| Resolution | FIXED |
| Resolved on | Feb 09, 2020 02:38 |
| Version | trunk |
| OS | FreeBSD |
| Reporter | LLVM Bugzilla Contributor |
| CC | @ekatz,@zhendongsu |
| Fixed by commit(s) | rG3b70ee27a503 |
Extended Description
Assertion failed: (CallSites.empty() && "Dangling pointers found in call sites map"), function RefreshCallGraph, file CallGraphSCCPass.cpp, line 333. Stack dump: 0. Program arguments: opt boot2.bc -always-inline -basicaa -basiccg -break-crit-edges -codegenprepare -deadtypeelim -die -domtree -early-cse -functionattrs -globaldce -globalopt -globalsmodref-aa -indvars -inline -instcombine -instnamer -instsimplify -intervals -iv-users -lazy-value-info -lda -libcall-aa -licm -lint -live-values -loop-deletion -loop-extract -loop-instsimplify -loop-reduce -loop-rotate -loop-unswitch -loops -mem2reg -memcpyopt -mergefunc -mergereturn -no-profile -postdomfrontier -postdomtree -profile-estimator -reg2mem -scalar-evolution -sccp -scev-aa -simplify-libcalls -simplify-libcalls-halfpowr -sink -split-geps -strip-dead-debug-info -strip-debug-declare -tailduplicate -tbaa
-
Running pass 'CallGraph Pass Manager' on module 'boot2.bc'.
and
Assertion failed: (CallSites.empty() && "Dangling pointers found in call sites map"), function RefreshCallGraph, file CallGraphSCCPass.cpp, line 333. Stack dump: 0. Program arguments: opt boot2.bc -adce -block-placement -break-crit-edges -constprop -die -dse -globalopt -indvars -inline -instcombine -instsimplify -iv-users -jump-threading -lazy-value-info -lda -licm -live-values -loop-deletion -loop-extract -loop-idiom -loop-unroll -loops -loweratomic -lowerinvoke -lowersetjmp -mem2reg -memcpyopt -mergefunc -no-profile -postdomtree -prune-eh -reassociate -reg2mem -scalar-evolution -scalarrepl -sccp -scev-aa -simplify-libcalls -simplify-libcalls-halfpowr -simplifycfg -sink -sretpromotion -strip-dead-debug-info -strip-debug-declare -strip-nondebug -tbaa
-
Running pass 'CallGraph Pass Manager' on module 'boot2.bc'.
the test file is the same as in bug 8928
*** Bug llvm/llvm-bugzilla-archive#31106 has been marked as a duplicate of this bug. ***
*** Bug llvm/llvm-project#8131 has been marked as a duplicate of this bug. ***
Fix in https://reviews.llvm.org/D69069
new_testcase I added an updated version of the testcase. Still reproducible on current trunk.
To reproduce run: opt boot2.bc -inline -loop-extract
I'm very interested with the bug
The problem here is loop-extract. It creates new functions, however we don't do anything with CallGraph there.
assigned to @ekatz