https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97565
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- has_gimple_body_p really cares about the WPA unit (we should probably note that in the comment). Here you seem to have function that is in the WPA translation unit but lands in different partition and in that case you have in_other_partition. used_from_other_partition is about symbols defined in current ltrans partition but being used from other ltrans.