llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

loop extract isn't a well behaved function pass

Open llvmbot opened this issue 15 years ago • 7 comments

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

  1.  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

  1.  Running pass 'CallGraph Pass Manager' on module 'boot2.bc'.
    

the test file is the same as in bug 8928

llvmbot avatar Jan 07 '11 19:01 llvmbot

*** Bug llvm/llvm-bugzilla-archive#31106 has been marked as a duplicate of this bug. ***

ekatz avatar Jan 22 '20 18:01 ekatz

*** Bug llvm/llvm-project#8131 has been marked as a duplicate of this bug. ***

ekatz avatar Jan 22 '20 18:01 ekatz

Fix in https://reviews.llvm.org/D69069

ekatz avatar Oct 17 '19 17:10 ekatz

new_testcase I added an updated version of the testcase. Still reproducible on current trunk.

To reproduce run: opt boot2.bc -inline -loop-extract

ekatz avatar Oct 16 '19 19:10 ekatz

I'm very interested with the bug

llvmbot avatar May 12 '12 10:05 llvmbot

The problem here is loop-extract. It creates new functions, however we don't do anything with CallGraph there.

llvmbot avatar Jan 11 '11 15:01 llvmbot

assigned to @ekatz

llvmbot avatar Jan 07 '11 19:01 llvmbot