The IRPGOFlag symbol (__llvm_profile_raw_version) will be dropped when identified
as non-prevailing for either regular or thin LTO during the mixed-LTO mode compilation.
This caused an unresolved symbol linker error when enable CSPGO over ThinLTO
after https://reviews.llvm.org/D103717.
Try set a CSIRPGO flag for CSPGO to avoid this symbol resolution caused value loss.
The way comdat any is used, it is unsupported if you mix non-CS and CS PGO object files. The first copy is picked by the linker.
This does not seem a proper fix to me. If you can give a concrete example, if may help me to understand.