https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70965
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jamborm at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The problem is that we first build cgraph edges and then shortly after cfg cleanup removes a bunch of bbs as unreachable, and those bbs contain calls. Nothing updates the cgraph edges though. The question is how are cgraph edges maintained, and how should code find out if it should maintain them or not. Or shall ipa-sra ignore cgraph edges with !gimple_bb (cs->call_stmt) or something similar?