https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695
--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> --- It is a clone materialization problem. IPA-CP clones f.part.0 twice and the second time tree_function_versioning receives NULL tree_map.