Deleting a fully specialised function left dangling pointers in
FunctionAnalysisManager, which causes an internal compiler error
when the function's storage was reused.
Fixes bug #58759.
Paths
| Differential D138909
FuncSpec] Invalidate analyses when deleting a fully specialised function ClosedPublic Authored by chill on Nov 29 2022, 4:16 AM.
Details Summary Deleting a fully specialised function left dangling pointers in Fixes bug #58759.
Diff Detail
Event TimelineComment Actions Ideally, now that we have the FAM in FunctionSpecializer I would like to also remove the callbacks (GetTLI, GetTTi, etc) and also remove the Legacy pass manager support entirely This revision is now accepted and ready to land.Nov 29 2022, 5:56 PM This revision was landed with ongoing or failed builds.Nov 30 2022, 10:58 AM Closed by commit rGe7ed43c7530d: [FuncSpec] Invalidate analyses when deleting a fully specialised function (authored by chill). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 479022 llvm/include/llvm/Transforms/Scalar/SCCP.h
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
llvm/lib/Transforms/IPO/SCCP.cpp
llvm/test/Transforms/FunctionSpecialization/compiler-crash-58759.ll
|